Bug with lemmatisation: lemma of "cameras" is "cameras"? #11873
Answered
by
adrianeboyd
Saibo-creator
asked this question in
Help: Other Questions
-
How to reproduce the behaviourimport spacy
nlp = spacy.load('en_core_web_sm')
doc = nlp("cameras, fungi")
for token in doc:
print(token._lemma)
# return cameras, fungi, expected: camera, fungus Info about spaCy
|
Beta Was this translation helpful? Give feedback.
Answered by
adrianeboyd
Nov 25, 2022
Replies: 1 comment
-
The underlying cause is the same reason as described here: #5343 (comment) If your texts are longer with more context ("The photographer always carries two cameras with her when she photographs fungi in the woods.") then the POS is more likely to be correct. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
polm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The underlying cause is the same reason as described here: #5343 (comment)
If your texts are longer with more context ("The photographer always carries two cameras with her when she photographs fungi in the woods.") then the POS is more likely to be correct.