-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
NoneType uncallable on spacy.load('fr') (if self.is_base_form(univ_pos, morphology)) #5728
Comments
Thanks for the report! I can fix the bug so this code works as before, but I think the French lemmatizer is unintentionally using English-specific code here that doesn't make sense for French. Let me check the details first, but I think we can probably just remove this whole function. |
I'm having the exact same problem with the french model, whereas my script worked fine yesterday. The English model works for me as well. |
The bug is in spacy v2.3.1. If you downgrade to v2.3.0 it should work. The models haven't changed (and won't need to change, the bug is in spacy itself). |
Thanks, I will downgrade to version 2.3.0 for the time being, and hopefully your fix will be in the newest version soon :). |
Hello, Typing: I get:TypeError Traceback (most recent call last) ~/opt/anaconda3/lib/python3.7/site-packages/spacy/language.py in call(self, text, disable, component_cfg) pipes.pyx in spacy.pipeline.pipes.Tagger.call() pipes.pyx in spacy.pipeline.pipes.Tagger.set_annotations() morphology.pyx in spacy.morphology.Morphology.assign_tag_id() morphology.pyx in spacy.morphology.Morphology.lemmatize() ~/opt/anaconda3/lib/python3.7/site-packages/spacy/lang/fr/lemmatizer.py in call(self, string, univ_pos, morphology) TypeError: 'NoneType' object is not callable |
The problem is not the model version, it is the |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
How to reproduce the behaviour
I am trying to get lemmatization/stemming to work with
spaCy
andspaCy_lefff
in French. However, everytime I try to execute this code block in iPython kernel (jupyter notebook):I am getting the following error:
I have downloaded with
python -m spacy download fr
andpython -m spacy download fr_core_news_sm
.Your Environment
Info about spaCy
spaCy version: 2.3.1
Platform: Linux-5.3.0-62-generic-x86_64-with-debian-buster-sid
Python version: 3.7.6
Models: fr, en
Environment Information: iPython kernel, Jupyter Notebook, Anaconda3
Extra
I have downloaded with python -m spacy download fr and python -m spacy download fr_core_news_sm.
Extra info:
The english package does work however:
with output
The text was updated successfully, but these errors were encountered: