Is it possible to make custom NER model to optimize on precision rather than accuracy? #8254
Answered
by
Tadusko
aliasneo1
asked this question in
Help: Other Questions
-
My current custom spacy NER model(V3.0) is good on recall but I want to improve precision rather than recall. Is it possible to set it in config file?
|
Beta Was this translation helpful? Give feedback.
Answered by
Tadusko
Jun 1, 2021
Replies: 1 comment 1 reply
-
Yes! I believe you need to change the values in By default, the bloc might look something like:
To give precision more weight, I suppose something like this could work:
More info on metrics and scoring in the documentation |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
svlandeg
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes! I believe you need to change the values in
[training.score_weights]
section of the config file and train with the new weights. These scores define what SpaCy believes to be the best model after the training process.By default, the bloc might look something like:
To give precision more weight, I suppose something like this could work:
More info on metrics and scoring in the documentation