explosion / sense2vec

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

sense2vec with spacy nightly #119

Open forgetso opened 4 years ago

forgetso commented 4 years ago

Is there any way to get sense2vec working with spacy nightly? Upon importing sense2vec I get the following error:

    from spacy import component
ImportError: cannot import name 'component' from 'spacy' (/home/user/anaconda3/envs/uniqueness/lib/python3.8/site-packages/spacy_nightly-3.0.0a5-py3.8-linux-x86_64.egg/spacy/__init__.py)

Has component been renamed to something else in spacy v3? Or are there much bigger changes to spacy that will require a rewrite of sense2vec?

svlandeg commented 4 years ago

Or are there much bigger changes to spacy that will require a rewrite of sense2vec?

Yep, this is the case ;-)

There have been quite some refactors, new & moved functionality in v.3. So I wouldn't be surprised at all if sense2vec will require a rewrite once a stable version of spaCy 3 is out...