Help needed for NER Training of de_core_news_lg #13122
Unanswered
NoraMathelemuse
asked this question in
Help: Coding & Implementations
Replies: 1 comment 5 replies
-
This question includes many different components and features (NER, the lemmatizer, the trainable lemmatizer, a custom lemmatizer component, morphological features, vocab lookups, vocab flags), so it's a bit hard to tell what's going on. Can you back up a step and explain what you're trying to accomplish overall? (And just to double-check my instincts: I'd be curious about whether this code is AI-generated to some degree?) |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have been trying to use the trainable lemmentizer component for the de_core_news_lg spacy model but the config file is always failing with an error message reads:
raise ValueError(f"Can't read file: {location}")
ValueError: Can't read file: de_core_news_lg
I have located the error back to the functions.py file which is simultaneously being called when the pipeline is initialised. The code breaks on line 28 :
nlp.get_pipe("custom_lemmatizer").add_label("GENDER=Feminine")
Eventhough I have written a class which calls on the function add_label(), the add_label function is not being called in the line above. Receiving this error message:
Traceback (most recent call last):
File "", line 1, in
File "spacy/pipeline/trainable_pipe.pyx", line 205, in spacy.pipeline.trainable_pipe.TrainablePipe.add_label
NotImplementedError: [E931] Encountered Pipe subclass without
Pipe.add_label
method in component 'custom_lemmatizer'. If you want to use this method, make sure it's overwritten on the subclass.Here is the whole functions.py file that might give a better idea of what I am doing wrong. I am simply stuck at this point and do not know how to progress to initialize the pipeline in order to get the labels added that i need to conitune with my work. If you know how I can overcome this I would really appreciate this.
Beta Was this translation helpful? Give feedback.
All reactions