Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spacy3.x not supported (tag_map no longer exists) #87

Open
jreades opened this issue May 28, 2021 · 1 comment
Open

Spacy3.x not supported (tag_map no longer exists) #87

jreades opened this issue May 28, 2021 · 1 comment

Comments

@jreades
Copy link

jreades commented May 28, 2021

Hi -- I'm trying to make use of PyMagnitude in a Docker image that has Spacy 3.0.6 installed. When trying to load the downloaded vectors I receive the following error:

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-37-54185549ba8b> in <module>
      1 import spacy
----> 2 from spacy.lang.en import tag_map

ImportError: cannot import name 'tag_map' from 'spacy.lang.en' (/opt/conda/envs/nlp/lib/python3.8/site-packages/spacy/lang/en/__init__.py)

A bit of Googling turned up:

The TAG_MAP and MORPH_RULES in the language data have been replaced by the more flexible AttributeRuler

See further info on Backwards Incompatibilities.

@filipegomes
Copy link

Same issue here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants