Update agieval.py
Browse filesskip miss-labelled sat_en
- agieval.py +11 -7
agieval.py
CHANGED
@@ -267,13 +267,17 @@ class AgiEval(datasets.GeneratorBasedBuilder):
|
|
267 |
}
|
268 |
|
269 |
elif self.config.name == "sat_en":
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
|
|
|
|
|
|
|
|
277 |
elif self.config.name in ['lsat_lr', 'lsat_rc', 'lsat_ar']:
|
278 |
yield key, {
|
279 |
"question": data["question"],
|
|
|
267 |
}
|
268 |
|
269 |
elif self.config.name == "sat_en":
|
270 |
+
label_index = "ABCDE".index(data["label"])
|
271 |
+
if label_index > len(data["options"]) - 1:
|
272 |
+
continue
|
273 |
+
else:
|
274 |
+
yield key, {
|
275 |
+
"passage": data["passage"],
|
276 |
+
"question": data["question"],
|
277 |
+
"options": data["options"],
|
278 |
+
"label": data["label"],
|
279 |
+
"solution": str(explanation_row),
|
280 |
+
}
|
281 |
elif self.config.name in ['lsat_lr', 'lsat_rc', 'lsat_ar']:
|
282 |
yield key, {
|
283 |
"question": data["question"],
|