Spaces:
Running
Running
Update Space (evaluate main: 61526a71)
Browse files- exact_match.py +1 -1
exact_match.py
CHANGED
@@ -61,5 +61,5 @@ class ExactMatch(evaluate.EvaluationModule):
|
|
61 |
)
|
62 |
|
63 |
def _compute(self, predictions1, predictions2):
|
64 |
-
score_list =
|
65 |
return {"exact_match": np.mean(score_list)}
|
|
|
61 |
)
|
62 |
|
63 |
def _compute(self, predictions1, predictions2):
|
64 |
+
score_list = [p1 == p2 for p1, p2 in zip(predictions1, predictions2)]
|
65 |
return {"exact_match": np.mean(score_list)}
|