Giter Site home page Giter Site logo

Comments (12)

draperunner avatar draperunner commented on June 27, 2024

Use from glove import Corpus or import glove.corpus

from glove-python.

igorbpf avatar igorbpf commented on June 27, 2024

Weird! Yesterday I did that and it didn't work. After u said, it worked! lol Thanks very much! :-)

from glove-python.

Palak-B avatar Palak-B commented on June 27, 2024

Use from glove import Corpus or import 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)

from glove-python.

lingadhar avatar lingadhar commented on June 27, 2024

same error appeared for me as well. Somebody please post the solution if any..Thanks in advance

from glove-python.

nghidinhit avatar nghidinhit commented on June 27, 2024

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'

from glove-python.

christianfarru avatar christianfarru commented on June 27, 2024

Could someone please post the solution (if any)

from glove-python.

chinmay81192 avatar chinmay81192 commented on June 27, 2024

Getting the same error even using a different file name

File "glove_embeddings.py", line 10, in
from glove import Corpus, Glove
ImportError: cannot import name 'Corpus' from 'glove' (C:\Program Files\Python37\lib\site-packages\glove_init_.py)

from glove-python.

bihani-g avatar bihani-g commented on June 27, 2024

Try installing the glove package through the following command:
! pip install glove_python

And then import Corpus and Glove:
from glove import Glove, Corpus

from glove-python.

steysie avatar steysie commented on June 27, 2024

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?

from glove-python.

bluetyson avatar bluetyson commented on June 27, 2024

Not yet.

from glove-python.

thepratman25 avatar thepratman25 commented on June 27, 2024

I am still getting the same error. Someone please help.

from glove-python.

gmihran avatar gmihran commented on June 27, 2024

I also had the same problem. The problem was solved when I installed as follows.

pip install glove-python-binary

from glove-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.