question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

An issue using the fr_core_news_sm

See original GitHub issue

Hi, 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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
adrianeboydcommented, Jul 13, 2020

Okay, I think this should be fixed in v2.3.2 now.

2reactions
adrianeboydcommented, Jul 10, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found