Update agieval.py
Browse files- 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"],
|