morphological feature not working (TypeError) #8528
Answered
by
adrianeboyd
nandinib1999
asked this question in
Help: Other Questions
-
How to reproduce the behaviourdoc = en("python execution.") Your Environment
|
Beta Was this translation helpful? Give feedback.
Answered by
adrianeboyd
Jun 28, 2021
Replies: 1 comment 1 reply
-
I'm not sure where this code is from, but If you want to use it, it'd be easiest to upgrade to spacy v3 ( |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
nandinib1999
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm not sure where this code is from, but
token.morph
was only partially implemented in spacy v2, so this isn't going to work with v2.2.4.If you want to use it, it'd be easiest to upgrade to spacy v3 (
pip install -U spacy
). You'll need to upgrade the downloadeden_core_web_md
model, too (spacy download en_core_web_md
).