Luluuu commited on
Commit
c561835
Β·
verified Β·
1 Parent(s): 91393cf

Update num_exact_match.py

Browse files
Files changed (1) hide show
  1. 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)