Spancat single_label model accuracy very low compared to NER #13088
Unanswered
vignesh-spericorn
asked this question in
Help: Model Advice
Replies: 1 comment 3 replies
-
Could you run the |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have trained a NER model for identifying 3 custom entities
The NER model performs reasonably well, but we need to also get confidence scores of prediction. So i trained a spancat single_label model (Since there are no overlapping entities) using the same training data, but the accuracy of the spancat model is nowhere near the NER model. I have attached the config file i used. Kindly suggest me on how to improve.
Annotations are done using NER annotator by tecoholic, Training was done using Google Colab
I created the config file using the command : python -m spacy init config configs/spancat_singlelabel.cfg --lang en --pipeline spancat_singlelabel --optimize efficiency
but it had a line "vectors = {"@vectors":"spacy.Vectors.v1"}" under [nlp] which threw an error during training so i deleted it and then the training ran fine.
config file : spancat_singlelabel_efficiency.txt
conversion of annotations to train.spacy : convert-annotations-to-spacy.txt
Thanks in Advance
Beta Was this translation helpful? Give feedback.
All reactions