Skip to content
Discussion options

You must be logged in to vote

Is there any way to use the Scorer ([https://spacy.io/api/scorer#_title]) directly on the test dataset used to train the model, so that I can verify which particular entities work better and which ones don't?

You can run scorer.score on a list of Example objects, though that will only give you the precision/recall/F-scores. If you just want some example cases to look at, you could take a fixed part of your test set, run each example through scorer.score([example]) and only print those where precision and recall are not 100% (or something such).

You could also write your own custom evaluation by comparing the predicted entities to the gold-standard ones - there's some related example cod…

Replies: 2 comments 1 reply

Comment options

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

Answer selected by tristancatteeuw
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat / training Feature: Training utils, Example, Corpus and converters feat / scorer Feature: Scorer
3 participants