Update scorer

This commit is contained in:
Matthew Honnibal 2020-08-25 02:42:47 +02:00
parent 8d6e1ce306
commit ef43152af4
1 changed files with 4 additions and 4 deletions

View File

@ -145,10 +145,10 @@ class Scorer:
acc_score.tp += 1
prf_score.score_set(pred_spans, gold_spans)
return {
"token_acc": acc_score.fscore * 100,
"token_p": prf_score.precision * 100,
"token_r": prf_score.recall * 100,
"token_f": prf_score.fscore * 100,
"token_acc": acc_score.fscore,
"token_p": prf_score.precision,
"token_r": prf_score.recall,
"token_f": prf_score.fscore,
}
@staticmethod