baber commited on
Commit
f458276
1 Parent(s): a15eb14

Update agieval.py

Browse files
Files changed (1) hide show
  1. agieval.py +2 -0
agieval.py CHANGED
@@ -225,6 +225,8 @@ class LogiQA2(datasets.GeneratorBasedBuilder):
225
  "label": data["label"],
226
  }
227
  elif self.config.name == "math_agieval":
 
 
228
  yield key, {
229
  "question": data["question"],
230
  "answer": data["answer"],
 
225
  "label": data["label"],
226
  }
227
  elif self.config.name == "math_agieval":
228
+ if not data["level"]:
229
+ data["level"] = data['other']['level']
230
  yield key, {
231
  "question": data["question"],
232
  "answer": data["answer"],