mirror of https://github.com/explosion/spaCy.git
Update scorer
This commit is contained in:
parent
8d6e1ce306
commit
ef43152af4
|
@ -145,10 +145,10 @@ class Scorer:
|
||||||
acc_score.tp += 1
|
acc_score.tp += 1
|
||||||
prf_score.score_set(pred_spans, gold_spans)
|
prf_score.score_set(pred_spans, gold_spans)
|
||||||
return {
|
return {
|
||||||
"token_acc": acc_score.fscore * 100,
|
"token_acc": acc_score.fscore,
|
||||||
"token_p": prf_score.precision * 100,
|
"token_p": prf_score.precision,
|
||||||
"token_r": prf_score.recall * 100,
|
"token_r": prf_score.recall,
|
||||||
"token_f": prf_score.fscore * 100,
|
"token_f": prf_score.fscore,
|
||||||
}
|
}
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
Loading…
Reference in New Issue