Post

Replies

Boosts

Views

Activity

Reply to NLEmbedding not found after updating to iOS 14.4
I had the same issue last month and it works now. But it only works for English. When I tried Chinese and a few other languages, they still return nil. My current issue with English is that when I tried to run below code, it returns __C.NLEmbedding.vector(for: Swift.String) -> Swift.Optional<Swift.Array<Swift.Double>> import NaturalLanguage let embedding = NLEmbedding.wordEmbedding(for: .english) let vector = embedding?.vector(for: "dog") ?? [] print(vector) //__C.NLEmbedding.vector(for: Swift.String) -> Swift.Optional<Swift.Array<Swift.Double>>
Aug ’21