epfml / sent2vec

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

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

Closed patilaum closed 5 years ago

patilaum commented 5 years ago

Getting the same error #42 and #43 and this is not working for me. The python module is not getting generated. I ran these commands and following file is being produced sent2vec.cpython-35m-x86_64-linux-gnu.so and sent to /usr/local/lib/python-3.5/dist-packages/

following is the log of pip3 install . Processing /home/aum/ezDI/main_code/sent2vec Installing collected packages: sent2vec Running setup.py install for sent2vec ... done Successfully installed sent2vec-0.0.0

mpagli commented 5 years ago

That's weird, could you try with an anaconda environment (https://www.anaconda.com/distribution/)?

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

vishwa795 commented 3 years ago

This problem still exists. I am facing the same problem. I have tried re-installing sent2vec repo, but nothing seems to work. pip install . on sent2vec shows that sent2vec-0.0.0 is installed but when I do conda list to check sent2vec is not shown there. While executing the script to extract key phrase I get the error saying 'module sent2vec' has no attribute 'Sent2vecModel'

guptaprkhr commented 3 years ago

I think you need to remove the old sent2vec installation first.

On Sun, Apr 18, 2021 at 8:10 PM Vishwa @.***> wrote:

This problem still exists. I am facing the same problem. I have tried re-installing sent2vec repo, but nothing seems to work. pip install . on sent2vec shows that sent2vec-0.0.0 is installed but when I do conda list to check sent2vec is not shown there. While executing the script to extract key phrase I get the error saying module 'sent2vec' has no attribute 'Sent2vecModel'

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/epfml/sent2vec/issues/61#issuecomment-822034801, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFK4PFCBJBDLZU7PR46OS3DTJMOBZANCNFSM4GX5UNGQ .