HomeiOS Developmentswift - NLembedding for iOS returning nil

swift – NLembedding for iOS returning nil


I am at present implementing on-device vector search utilizing Apple’s Pure Language Library. Nonetheless, I am going through a problem the place the iOS SentenceEmbedding operate is returning nil. It was working tremendous on macOS and iOS till lately.

I’ve hooked up the terminal output and the code line the place the error happens.

Any help you possibly can present could be tremendously appreciated.

error line:
let embedding = NLEmbedding.sentenceEmbedding(for: .english)!

error:
2023-07-14 18:33:29.776152+0530 pdfembedding[3323:124750] Unable to find Asset for sentence embedding mannequin for native en.

pdfembedding/VectorEmbedding.swift:69: Deadly error: Unexpectedly discovered nil whereas unwrapping an Optionally available worth

2023-07-14 18:33:29.776391+0530 pdfembedding[3323:124750] pdfembedding/VectorEmbedding.swift:69: Deadly error: Unexpectedly discovered nil whereas unwrapping an Optionally available worth

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments