bureaucratic-labs / dostoevsky

Sentiment analysis library for russian language
MIT License
311 stars 33 forks source link

the model doesn't return a WordVectorModel or SupervisedModel anymore? #143

Closed michaelschlitzer closed 3 years ago

michaelschlitzer commented 3 years ago

Warning : load_model does not return WordVectorModel or SupervisedModel any more, but a FastText object which is very similar.

I'm trying to use this in Colab and it appears that everything loads correctly, but when I work through the given example with the three simple phrases, it fails, saying that:

ValueError: /usr/local/lib/python3.7/dist-packages/dostoevsky/data/models/fasttext-social-network-model.bin cannot be opened for loading!

I'm not sure what that means or how to proceed or what these error messages mean. Do you have any advice?

dveselov commented 3 years ago

Hi, It seems like model data wasn't loaded correctly, try to remove model (e.g. run rm /usr/local/lib/python3.7/dist-packages/dostoevsky/data/models/fasttext-social-network-model.bin) and then again execute python -m dostoevsky download fasttext-social-network-model