mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-24 17:06:29 +03:00
Update scorer
This commit is contained in:
parent
8d6e1ce306
commit
ef43152af4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user