From 8181d4570ca5d9273cdf8b653008e161dc6d8963 Mon Sep 17 00:00:00 2001 From: Paul O'Leary McCann Date: Thu, 14 Apr 2022 15:56:38 +0900 Subject: [PATCH] Multiply accuracy by 100 This seems to match with the scorer expectations better --- spacy/pipeline/coref.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/pipeline/coref.py b/spacy/pipeline/coref.py index 671d65e19..489f8875b 100644 --- a/spacy/pipeline/coref.py +++ b/spacy/pipeline/coref.py @@ -633,4 +633,4 @@ class SpanPredictor(TrainablePipe): correct = (starts == pred_starts) * (ends == pred_ends) accuracy = correct.mean() scores.append(float(accuracy)) - return {"span_accuracy": mean(scores)} + return {"span_accuracy": 100 * mean(scores)}