From 67596fc58adb2ffb630ff2c31465a78a8b568089 Mon Sep 17 00:00:00 2001 From: Adriane Boyd Date: Fri, 21 Oct 2022 11:21:58 +0200 Subject: [PATCH] Undo changes to PRFScorer --- spacy/scorer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/scorer.py b/spacy/scorer.py index ac58b9473..8cd755ac4 100644 --- a/spacy/scorer.py +++ b/spacy/scorer.py @@ -26,7 +26,7 @@ class PRFScore: *, tp: int = 0, fp: int = 0, - fn: int = 0 + fn: int = 0, ) -> None: self.tp = tp self.fp = fp @@ -43,7 +43,7 @@ class PRFScore: def __add__(self, other): return PRFScore( - tp=self.tp + other.tp, fp=self.fp + other.fp, fn=self.fn + other.fn, + tp=self.tp + other.tp, fp=self.fp + other.fp, fn=self.fn + other.fn ) def score_set(self, cand: set, gold: set) -> None: