kimvu commited on
Commit
f30aad7
·
1 Parent(s): 4e5d0ea

Update agieval.py

Browse files
Files changed (1) hide show
  1. agieval.py +10 -5
agieval.py CHANGED
@@ -63,7 +63,6 @@ class AgiEval(datasets.GeneratorBasedBuilder):
63
  }
64
  )
65
  if self.config.name == "aqua_rat":
66
- print("IDKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK")
67
  features = datasets.Features(
68
  {
69
  "question": datasets.Value("string"),
@@ -284,11 +283,17 @@ class AgiEval(datasets.GeneratorBasedBuilder):
284
  for key, row in enumerate(f):
285
  data = json.loads(row)
286
  if self.config.name == "aqua_rat":
 
 
 
 
 
 
287
  yield key, {
288
- "question": data["question"],
289
- "options": data["options"],
290
- "label": data["label"],
291
- "solution": data["other"]["solution"],
292
  }
293
  elif self.config.name in ["sat_en", "sat_math"]:
294
  label_index = "ABCDE".index(data["label"])
 
63
  }
64
  )
65
  if self.config.name == "aqua_rat":
 
66
  features = datasets.Features(
67
  {
68
  "question": datasets.Value("string"),
 
283
  for key, row in enumerate(f):
284
  data = json.loads(row)
285
  if self.config.name == "aqua_rat":
286
+ # yield key, {
287
+ # "question": data["question"],
288
+ # "options": data["options"],
289
+ # "label": data["label"],
290
+ # "solution": data["other"]["solution"],
291
+ # }
292
  yield key, {
293
+ "question": "",
294
+ "options": "",
295
+ "label": "",
296
+ "solution": "",
297
  }
298
  elif self.config.name in ["sat_en", "sat_math"]:
299
  label_index = "ABCDE".index(data["label"])