[E143] Labels for component 'tagger' not initialized on version 3.0.3 #7614
-
My Environment
Hi I tried training a custom tagger, using the below command
I am getting the below error,
I can't find a way on how to add the custom labels. Could anyone guide me on how this could be fixed... Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
The labels are normally read in from the docs import spacy
from spacy.tokens import DocBin
nlp = spacy.blank("en")
db = DocBin().from_disk("train.spacy")
for doc in db.get_docs(nlp.vocab):
assert doc.has_annotation("TAG")
# or just inspect the tags
for token in doc:
print(token.text, token.tag_) |
Beta Was this translation helpful? Give feedback.
-
Hi ! I'm pretty new to NLP. I'm trying to made my NER indentifie aircraft models. I first think problem came from the custom NER tag "aircraft". In my mind, tags for tagger where present per default. Please can you ligth my lantern ? |
Beta Was this translation helpful? Give feedback.
The labels are normally read in from the docs
train.spacy
undertoken.tag_
. Can you load the file and check that the docs are tagged?