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

Update agieval.py

Browse files
Files changed (1) hide show
  1. agieval.py +3 -1
agieval.py CHANGED
@@ -160,7 +160,8 @@ class LogiQA2(datasets.GeneratorBasedBuilder):
160
  elif self.config.name == "logiqa":
161
  # remove solution from other
162
  features = datasets.Features(
163
- {"question": datasets.Value("string"),
 
164
  "options": datasets.features.Sequence(datasets.Value("string")),
165
  "label": datasets.ClassLabel(num_classes=4, names=["A", "B", "C", "D"]),
166
  }
@@ -218,6 +219,7 @@ class LogiQA2(datasets.GeneratorBasedBuilder):
218
  }
219
  elif self.config.name == "logiqa":
220
  yield key, {
 
221
  "question": data["question"],
222
  "options": data["options"],
223
  "label": data["label"],
 
160
  elif self.config.name == "logiqa":
161
  # remove solution from other
162
  features = datasets.Features(
163
+ {"passage": datasets.Value("string"),
164
+ "question": datasets.Value("string"),
165
  "options": datasets.features.Sequence(datasets.Value("string")),
166
  "label": datasets.ClassLabel(num_classes=4, names=["A", "B", "C", "D"]),
167
  }
 
219
  }
220
  elif self.config.name == "logiqa":
221
  yield key, {
222
+ "passage": data["passage"],
223
  "question": data["question"],
224
  "options": data["options"],
225
  "label": data["label"],