NER assigning incorrect entity type #9285
-
Hi, NER seems to be assigning an incorrect entity type to a token. The code I'm using is:
The output of this program is:
The token in question is 0.650 which has an entity type of ORG. In a previous version of spaCy, this token had the correct entity type of CARDINAL. Can you please assist us with this? My spaCy info is: spaCy version 3.1.3 Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey rshahrabani 🎉, You can read more about the EntityRuler here: https://spacy.io/usage/rule-based-matching#entityruler In general, these kinds of issues with predictions are related to the statistical models and issue #3052 is a good place to report them, thanks!
|
Beta Was this translation helpful? Give feedback.
Hey rshahrabani 🎉,
ML models are not always 100% correct with their predictions and do misclassification sometimes. For your case, I'd recommend using the
EntityRuler
to findCARDINALS
rule-based or to further improve the model with your own data.You can read more about the EntityRuler here: https://spacy.io/usage/rule-based-matching#entityruler
and about training models here: https://spacy.io/usage/training#basics
In general, these kinds of issues with predictions are related to the statistical models and issue #3052 is a good place to report them, thanks!