baber commited on
Commit
8c9fc75
1 Parent(s): be2db68

Update agieval.py

Browse files

skip miss-labelled sat_en

Files changed (1) hide show
  1. 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
- yield key, {
271
- "passage": data["passage"],
272
- "question": data["question"],
273
- "options": data["options"],
274
- "label": data["label"],
275
- "solution": str(explanation_row),
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"],