Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -104,6 +104,7 @@ def check_answer(
|
|
| 104 |
preds = generation.split("\n")[-1]
|
| 105 |
preds = re.sub("Answer:", "", preds)
|
| 106 |
preds = preds.split(",")
|
|
|
|
| 107 |
preds = sorted(preds, key=lambda x: x[0])
|
| 108 |
|
| 109 |
ground_truth = sorted(ground_truth)
|
|
|
|
| 104 |
preds = generation.split("\n")[-1]
|
| 105 |
preds = re.sub("Answer:", "", preds)
|
| 106 |
preds = preds.split(",")
|
| 107 |
+
preds = [p.strip() for p in preds]
|
| 108 |
preds = sorted(preds, key=lambda x: x[0])
|
| 109 |
|
| 110 |
ground_truth = sorted(ground_truth)
|