Spaces:
Runtime error
Runtime error
Update num_exact_match.py
Browse files- num_exact_match.py +2 -2
num_exact_match.py
CHANGED
@@ -54,8 +54,8 @@ class NumExactMatch(evaluate.Metric):
|
|
54 |
# print(r)
|
55 |
num_in_pred = re.findall(r'\d+', p)
|
56 |
num_in_ground_truth = re.findall(r'\d+', r)
|
57 |
-
print(num_in_pred)
|
58 |
-
print(num_in_ground_truth)
|
59 |
if(num_in_pred == num_in_ground_truth):
|
60 |
# print("ε
¨ε°")
|
61 |
score_list.append(2.0)
|
|
|
54 |
# print(r)
|
55 |
num_in_pred = re.findall(r'\d+', p)
|
56 |
num_in_ground_truth = re.findall(r'\d+', r)
|
57 |
+
# print(num_in_pred)
|
58 |
+
# print(num_in_ground_truth)
|
59 |
if(num_in_pred == num_in_ground_truth):
|
60 |
# print("ε
¨ε°")
|
61 |
score_list.append(2.0)
|