Skip to content
Discussion options

You must be logged in to vote

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:

[training.score_weights]
ents_per_type = null
ents_f = 1.0
ents_p = 0.0
ents_r = 0.0

To give precision more weight, I suppose something like this could work:

[training.score_weights]
ents_per_type = null
ents_f = 0.0
ents_p = 0.75
ents_r = 0.25

More info on metrics and scoring in the documentation

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@aliasneo1
Comment options

Answer selected by svlandeg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat / ner Feature: Named Entity Recognizer
2 participants
Converted from issue

This discussion was converted from issue #8250 on June 01, 2021 04:06.