ValueError: [E143] Labels for component 'trainable_lemmatizer' not initialized in Spacy 3.6 #12841
Unanswered
Norky101
asked this question in
Help: Coding & Implementations
Replies: 1 comment 3 replies
-
Hi @Norky101! Are lemmas available in your training data ( |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am using a config created from the Spacy page (selected my component preferences, config init fill command, debug config )
Everything works great.
When I run train spacy like so, (including without the extra --code parameters):
I am getting the error:
I found this discussion and have followed the steps (run train), but it does not seem to have worked. Perhaps because the post is on an older version of Spacy.
From my understanding, spacy should fill these needed data files once it has looped through the training data, the same way ner labels are filled once it has looped over the training data annotations.
In addition, my 'sentence.py' and 'matcher.py' work fine as I have used them recently in another config file.
By setting changing this:
to this:
It does remove the original warning, then once running train, it gives this warning:
then this error:
This updated error relates to this huggingface/transformers#1791 but seems to be separate from spacy:
Any help is much appreciated! Thank you!
config.cfg:
Using:
Python 3.11
Spacy 3.6
Models 3.6
Pycharm
Beta Was this translation helpful? Give feedback.
All reactions