How to initialize trainable_lemmatizer in config.cfg? #11167
-
When I run this command: python -m spacy train "C:/Users/canberk/Desktop/Model/config.cfg" --output "C:/Users/canberk/Desktop/Model/models/output" I'm getting the error below: " ValueError: [E143] Labels for component 'trainable_lemmatizer' not initialized. This can be fixed by calling add_label, or by providing a representative batch of examples to the component's Here is config.cfg:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
To format code blocks correctly, you need to put three backticks at the start and end. See the Github Markdown guide. In order for the trainable component to work, you need to provide labels. You can do this by providing a file with labels or annotated data. For the lemmatizer it's much easier to provide annotated data. This error suggests that your training data doesn't have any lemmas assigned. How are you creating your training data? |
Beta Was this translation helpful? Give feedback.
To format code blocks correctly, you need to put three backticks at the start and end. See the Github Markdown guide.
In order for the trainable component to work, you need to provide labels. You can do this by providing a file with labels or annotated data. For the lemmatizer it's much easier to provide annotated data.
This error suggests that your training data doesn't have any lemmas assigned. How are you creating your training data?