Skip to content

Commit 65e75ea

Browse files
authored
Fix typo (#4)
1 parent 4fa2392 commit 65e75ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,11 @@ def compute_metrics_acc(eval_preds):
177177
correct = 0
178178
assert len(preds) == len(targets)
179179
for idx, pred in enumerate(preds):
180-
referece = targets[idx]
181-
referece = extract_ans(referece)
180+
reference = targets[idx]
181+
reference = extract_ans(reference)
182182
extract_pred = extract_ans(pred)
183183
best_option = extract_pred
184-
if referece == best_option:
184+
if reference == best_option:
185185
correct +=1
186186
return {'accuracy': 1.0*correct/len(targets)}
187187

0 commit comments

Comments
 (0)