epfml / sent2vec

General purpose unsupervised sentence representations
Other
1.19k stars 256 forks source link

module 'sent2vec' has no attribute 'Sent2vecModel' #42

Closed mar00nie closed 6 years ago

mar00nie commented 6 years ago

Hi, I trained a sent2vec model last week and was able to use it for sentence similarity. Today I reran the code in jupyter notebook and the line "model = sent2vec.Sent2vecModel()" produces the error "module 'sent2vec' has no attribute 'Sent2vecModel'". Do you know what the problem is?

mpagli commented 6 years ago

Did you try reinstalling the cython module ?

mar00nie commented 6 years ago

I recloned the repository and ran all the commands again, and now it works. Thanks.

patilaum commented 5 years ago

Processing /home/aum/ezDI/main_code/sent2vec Installing collected packages: sent2vec Running setup.py install for sent2vec ... done Successfully installed sent2vec-0.0.0

Stannislav commented 3 years ago

Note that if you install sent2vec using

$ pip install sent2vec

then you'll get the wrong package. This is because the package sent2vec on PyPI is a totally different package with the same name.

The correct way of installing sent2vec is to clone their repository here https://github.com/epfml/sent2vec and to follow the instructions in the README file