sense2vec icon indicating copy to clipboard operation
sense2vec copied to clipboard

sense2vec with spacy nightly

Open forgetso opened this issue 5 years ago • 1 comments

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?

forgetso avatar Aug 04 '20 15:08 forgetso

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...

svlandeg avatar Aug 04 '20 16:08 svlandeg