kimvu commited on
Commit
f160e10
·
1 Parent(s): c44b81d

Update agieval.py

Browse files
Files changed (1) hide show
  1. agieval.py +6 -6
agieval.py CHANGED
@@ -58,7 +58,7 @@ _URLS = {
58
  "lsat_rc": {
59
  "test": HEAD+'lsat-rc.jsonl'
60
  },
61
- "logiqa": {
62
  "test": HEAD+'logiqa-en.jsonl'
63
  },
64
  "aqua_rat": {
@@ -112,7 +112,7 @@ class AgiEval(datasets.GeneratorBasedBuilder):
112
  description="",
113
  ),
114
  datasets.BuilderConfig(
115
- name="logiqa",
116
  version=VERSION,
117
  description="",
118
  ),
@@ -153,7 +153,7 @@ class AgiEval(datasets.GeneratorBasedBuilder):
153
  "solution": datasets.Value("string"),
154
  }
155
  )
156
- elif self.config.name == "logiqa":
157
  # remove solution from other
158
  features = datasets.Features(
159
  {"passage": datasets.Value("string"),
@@ -214,7 +214,7 @@ class AgiEval(datasets.GeneratorBasedBuilder):
214
  # Mapping for column names in CSV to dataset names
215
  names = {'aqua_rat': 'aqua-rat', 'sat_en': 'sat-en', 'sat_math': 'sat-math',
216
  'lsat_ar': 'lsat-ar', 'lsat_lr': 'lsat-lr', 'lsat_rc': 'lsat-rc',
217
- 'logiqa': 'logiqa-en', 'math_agieval': 'math'}
218
 
219
  if split == "few_shot":
220
  # Load the data from the CSV
@@ -235,7 +235,7 @@ class AgiEval(datasets.GeneratorBasedBuilder):
235
  "label": data["label"],
236
  "solution": str(explanation_row),
237
  }
238
- elif self.config.name == "logiqa":
239
  yield key, {
240
  "passage": data["passage"],
241
  "question": data["question"],
@@ -285,7 +285,7 @@ class AgiEval(datasets.GeneratorBasedBuilder):
285
  "label": data["label"],
286
  "solution": data["other"]["solution"],
287
  }
288
- elif self.config.name == "logiqa":
289
  yield key, {
290
  "passage": data["passage"],
291
  "question": data["question"],
 
58
  "lsat_rc": {
59
  "test": HEAD+'lsat-rc.jsonl'
60
  },
61
+ "logiqa_en": {
62
  "test": HEAD+'logiqa-en.jsonl'
63
  },
64
  "aqua_rat": {
 
112
  description="",
113
  ),
114
  datasets.BuilderConfig(
115
+ name="logiqa_en",
116
  version=VERSION,
117
  description="",
118
  ),
 
153
  "solution": datasets.Value("string"),
154
  }
155
  )
156
+ elif self.config.name == "logiqa_en":
157
  # remove solution from other
158
  features = datasets.Features(
159
  {"passage": datasets.Value("string"),
 
214
  # Mapping for column names in CSV to dataset names
215
  names = {'aqua_rat': 'aqua-rat', 'sat_en': 'sat-en', 'sat_math': 'sat-math',
216
  'lsat_ar': 'lsat-ar', 'lsat_lr': 'lsat-lr', 'lsat_rc': 'lsat-rc',
217
+ 'logiqa_en': 'logiqa_en', 'math_agieval': 'math'}
218
 
219
  if split == "few_shot":
220
  # Load the data from the CSV
 
235
  "label": data["label"],
236
  "solution": str(explanation_row),
237
  }
238
+ elif self.config.name == "logiqa_en":
239
  yield key, {
240
  "passage": data["passage"],
241
  "question": data["question"],
 
285
  "label": data["label"],
286
  "solution": data["other"]["solution"],
287
  }
288
+ elif self.config.name == "logiqa_en":
289
  yield key, {
290
  "passage": data["passage"],
291
  "question": data["question"],