meta.json labels for a custom NER using pretrained transformer #11824
-
Hi I am training a custom NER model using a hugging face pretrained transformer model. The transformer model provides 7 labels for annotating the text. When i look at the meta.json file of my created model, i see all the labels within the ner section instead of the transformer section, whereas all the labels are coming from the transformer section as well as my training data. Below are my config file and meta.json files. Please let me know if i am missing some step or if my meta.json is correct. Another reason for asking this question is, inspite of using a pretrained transformer, my scores are coming very low i i.e. in range of 0.2 - 0.3(as can be seen in the label scores in the meta.json)
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 13 replies
-
Looking at per-label scores, several of them have zero, which might happen if you have no training examples of that score. What's the output of debug data for your training data? For the non-zero one, several of them seem to have pretty reasonable scores. |
Beta Was this translation helpful? Give feedback.
spacy-transformers
only uses Transformers as feature sources, it can't use NER or other task-specific heads. There's also no way for a transformer component to have labels for that reason.Looking at per-label scores, several of them have zero, which might happen if you have no training examples of that score. What's the output of debug data for your training data? For the non-zero one, several of them seem to have pretty reasonable scores.