Skip to content

Commit 07891ac

Browse files
committed
critical fix for score_muc
1 parent 7adb5eb commit 07891ac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "tibert"
3-
version = "0.3.0"
3+
version = "0.3.1"
44
description = "BERT for Coreference Resolution"
55
authors = ["Arthur Amalvy <arthur.amalvy@univ-avignon.fr>"]
66
license = "GPL-3.0-only"

tibert/score.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def score_muc(
115115
np.int = int # type: ignore
116116
np.bool = bool # type: ignore
117117

118-
precisions, recalls, f1s = []
118+
precisions, recalls, f1s = [], [], []
119119
for pred, ref in zip(preds, refs):
120120
p, r, f1 = _neleval_precision_recall_f1(pred, ref, muc)
121121
precisions.append(p)

0 commit comments

Comments
 (0)