fix v1
Browse files- nl2bash_m.py +1 -1
nl2bash_m.py
CHANGED
@@ -131,7 +131,7 @@ class nl2bash_m(evaluate.Metric):
|
|
131 |
|
132 |
for pred, ref in zip(predictions, references):
|
133 |
print(pred, ref)
|
134 |
-
pred_words, ref_words = pred
|
135 |
# Get the cmd of predicted and ref
|
136 |
cmd_corr = 1 if pred_words.pop(0)==ref_words.pop(0) else 0
|
137 |
|
|
|
131 |
|
132 |
for pred, ref in zip(predictions, references):
|
133 |
print(pred, ref)
|
134 |
+
pred_words, ref_words = pred.split(), ref[0].split()
|
135 |
# Get the cmd of predicted and ref
|
136 |
cmd_corr = 1 if pred_words.pop(0)==ref_words.pop(0) else 0
|
137 |
|