Update agieval.py
Browse files- agieval.py +3 -0
agieval.py
CHANGED
@@ -227,6 +227,8 @@ class LogiQA2(datasets.GeneratorBasedBuilder):
|
|
227 |
elif self.config.name == "math_agieval":
|
228 |
if not data.get("level"):
|
229 |
data["level"] = data['other']['level']
|
|
|
|
|
230 |
yield key, {
|
231 |
"question": data["question"],
|
232 |
"answer": data["answer"],
|
@@ -249,3 +251,4 @@ class LogiQA2(datasets.GeneratorBasedBuilder):
|
|
249 |
"options": data["options"],
|
250 |
"label": data["label"],
|
251 |
}
|
|
|
|
227 |
elif self.config.name == "math_agieval":
|
228 |
if not data.get("level"):
|
229 |
data["level"] = data['other']['level']
|
230 |
+
if not data.get("type"):
|
231 |
+
data["type"] = data['other']['type']
|
232 |
yield key, {
|
233 |
"question": data["question"],
|
234 |
"answer": data["answer"],
|
|
|
251 |
"options": data["options"],
|
252 |
"label": data["label"],
|
253 |
}
|
254 |
+
|