An issue using the fr_core_news_sm
See original GitHub issueHi, I get an error when using the French spacy model. Not sure what the issue is.
How to reproduce the behaviour
import spacy
nlp = spacy.load("fr_core_news_sm")
text= "Un atome est la plus petite partie d'un corps simple pouvant se combiner chimiquement avec un autre. Les atomes sont les constituants élémentaires de toutes les substances solides, liquides ou gazeuses. Les propriétés physiques et chimiques de ces substances sont déterminées par les atomes qui les constituent ainsi que par l'arrangement tridimensionnel de ces atomes."
doc= nlp(text)
Your Environment
Traceback (most recent call last):
File "<ipython-input-7-f9c82afb6c9b>", line 1, in <module>
doc= nlp(text)
File "/home/santoshbs/anaconda3/envs/env_spacy/lib/python3.7/site-packages/spacy/language.py", line 449, in __call__
doc = proc(doc, **component_cfg.get(name, {}))
File "pipes.pyx", line 398, in spacy.pipeline.pipes.Tagger.__call__
File "pipes.pyx", line 443, in spacy.pipeline.pipes.Tagger.set_annotations
File "morphology.pyx", line 310, in spacy.morphology.Morphology.assign_tag_id
File "morphology.pyx", line 244, in spacy.morphology.Morphology.lemmatize
File "/home/santoshbs/anaconda3/envs/env_spacy/lib/python3.7/site-packages/spacy/lang/fr/lemmatizer.py", line 49, in __call__
if self.is_base_form(univ_pos, morphology):
TypeError: 'NoneType' object is not callable
- Operating System: Ubuntu 20.04
- Python Version Used: 3.7.7
- spaCy Version Used: Github version
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:6 (4 by maintainers)
Top Results From Across the Web
How To Solve Spanish Lemmatization Problems With Spacy?
Learn how to perform spacy lemmatization.solve the spacy lemmatization speed issue as well as solve the pronoun related errors spacy. I have used...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Okay, I think this should be fixed in v2.3.2 now.
Sorry, this is a bug in spacy 2.3.1. See #5728. Please downgrade to 2.3.0 until we get the fix released in 2.3.2.