explosion / sense2vec

🦆 Contextually-keyed word vectors
https://explosion.ai/blog/sense2vec-reloaded
MIT License
1.62k stars 239 forks source link

error trying to run 01_parse.py #111

Open angelo337 opened 4 years ago

angelo337 commented 4 years ago

hi there I just trying your model and I'm Getting this error:

Original exception was:
Traceback (most recent call last):
  File "scripts/01_parse.py", line 3, in <module>
    from spacy.tokens import DocBin
ImportError: cannot import name 'DocBin'

I just install Spacy 2.2.4 and get latest version of this Pack. could you please help me? thanks

danielmoore19 commented 3 years ago

Hi angelo! instead of using a pip install, trying building and installing from the git repo (solved multiple issues for me).

run first: !python setup.py build

then run: !python setup.py install

hopefully this helps you or the next person who comes along.

learned from issue #107