Lemmatizer problem migrating from spaCy v2 #9512
-
I have been using Spacy with the version 2.1.3. Therefore, I would like to update to the current version. However, I have the next problem:
I have tried:
But I'm not able to create de lemmatizer. With the old version of Spacy we did it in the following way: What is the way in Spacy v3? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 12 replies
-
Sorry to hear you're having trouble with this. Can you clarify what you did that caused the E1004 to show up? Were you trying to load an old model, or trying to make a model in v3 with the same structure, or something else? Note that at some point after 2.1 the lemmatizer tables were moved to a package called
Sorry, but I don't understand what you mean here. The way the Adding a lemmatizer like the one in the pretrained pipelines to a custom pipeline is slightly complex, and the process differs depending on the language. Generally you need POS tags from either a Morphologizer or a Tagger + Attribute Ruler (see #8341). Can you clarify what language you're using and what your overall goal is? |
Beta Was this translation helpful? Give feedback.
Sorry to hear you're having trouble with this.
Can you clarify what you did that caused the E1004 to show up? Were you trying to load an old model, or trying to make a model in v3 with the same structure, or something else?
Note that at some point after 2.1 the lemmatizer tables were moved to a package called
spacy-lookups-data
, so you'll need to install that if you're making a Lemmatizer directly and want the lookup tables. Normally that's not necessary if you're using a pretrained pipeline.Sorry, but I don't understand what you mean here. The way the