aboSamoor / polyglot

Multilingual text (NLP) processing toolkit
http://polyglot-nlp.com
Other
2.3k stars 337 forks source link

sentiment2.xx_Qaai not found in index #169

Closed rubik closed 5 years ago

rubik commented 5 years ago

I am trying to do sentiment analysis. The text is in English. When I try to access the polarity property of the sentence object I get the error:

ValueError: Package 'sentiment2.xx_Qaai' not found in index

I already downloaded the collections ner2, sentiment2 and embeddings2.

rubik commented 5 years ago

Solved. I had a document with only emojis, and the language detector returned xxQaai. Then the matching sentiment data couldn't be found