AttributeError: 'spacy.vectors.Vectors' object has no attribute 'borrow' #8940
-
How to reproduce the behaviourYour Environment
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi, could you provide a bit more context about the code that you're running, the full error message, and the output of |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Hmm, somehow you've ended up with some old/prerelease sense2vec code that was written for a much older version of spacy. Try to uninstall and reinstall sense2vec or start again in a clean venv, double-checking that you have a compatible version of spacy after the install. For sense2vec v2.0.0 this is spacy v3.x; for sense2vec v1.0.3 this is spacy v2.2 or v2.3. If you install sense2vec in a new venv with pip, it should automatically install a compatible version of spacy. |
Beta Was this translation helpful? Give feedback.
Hmm, somehow you've ended up with some old/prerelease sense2vec code that was written for a much older version of spacy.
Try to uninstall and reinstall sense2vec or start again in a clean venv, double-checking that you have a compatible version of spacy after the install. For sense2vec v2.0.0 this is spacy v3.x; for sense2vec v1.0.3 this is spacy v2.2 or v2.3.
If you install sense2vec in a new venv with pip, it should automatically install a compatible version of spacy.