-
Notifications
You must be signed in to change notification settings - Fork 108
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
‘’AttributeError: 'English' object has no attribute 'tagger'” when running the "Quick Start" code in API given in README.md #38
Comments
Hiya, Sounds like you forgot to install a spacy model (the last line in the installation instructions): If that still doesn't work, try reinstalling in a new, clean virtual python environment. |
Hi @chrisjbryant Is this because some files in my "en_core_web_md" model are not in the right place or something else? |
Glad to hear it works! |
Hi @chrisjbryant ! I changed the model to spacy2 version and the code executed successfully! |
How can I eliminate this error report "AttributeError: 'English' object has no attribute 'tagger'"? I changed several data models, but they didn't work.
code:
`import errant
annotator = errant.load('en')
orig = annotator.parse('This are gramamtical sentence .')
cor = annotator.parse('This is a grammatical sentence .')
edits = annotator.annotate(orig, cor)
for e in edits:
print(e.o_start, e.o_end, e.o_str, e.c_start, e.c_end, e.c_str, e.type)`
The text was updated successfully, but these errors were encountered: