Closed igorbpf closed 7 years ago
Use from glove import Corpus
or import glove.corpus
Weird! Yesterday I did that and it didn't work. After u said, it worked! lol Thanks very much! :-)
Use
from glove import Corpus
orimport glove.corpus
I did the same but I'm getting this. Cannot import name 'Corpus' from 'glove' (/anaconda3/lib/python3.7/site-packages/glove/init.py)
same error appeared for me as well. Somebody please post the solution if any..Thanks in advance
what is the name of python file and package? Is it glove.py? Change the name of package and python file, it must be different from 'glove'
Could someone please post the solution (if any)
Getting the same error even using a different file name
File "glove_embeddings.py", line 10, in
Try installing the glove package through the following command:
! pip install glove_python
And then import Corpus and Glove:
from glove import Glove, Corpus
Try installing the glove package through the following command:
! pip install glove_python
And then import Corpus and Glove:
from glove import Glove, Corpus
Unfortunately, still unable to import Corpus. Did anyone find other solutions?
Not yet.
I am still getting the same error. Someone please help.
I also had the same problem. The problem was solved when I installed as follows.
pip install glove-python-binary
When I try to import glove, I get this. Does anyone know a solution?