Undo changes to PRFScorer

This commit is contained in:
Adriane Boyd 2022-10-21 11:21:58 +02:00
parent 08c0c4140c
commit 67596fc58a

View File

@ -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: