Update aceval.py
Browse files
aceval.py
CHANGED
|
@@ -109,8 +109,8 @@ class ACEVAL(datasets.GeneratorBasedBuilder):
|
|
| 109 |
def _generate_examples(self, filepath):
|
| 110 |
df = pd.read_excel(filepath, encoding="utf-8")
|
| 111 |
for i, instance in enumerate(df.to_dict(orient="records")):
|
| 112 |
-
if "
|
| 113 |
-
instance["
|
| 114 |
-
if "
|
| 115 |
-
instance["
|
| 116 |
yield i, instance
|
|
|
|
| 109 |
def _generate_examples(self, filepath):
|
| 110 |
df = pd.read_excel(filepath, encoding="utf-8")
|
| 111 |
for i, instance in enumerate(df.to_dict(orient="records")):
|
| 112 |
+
if "Answer" not in instance.keys():
|
| 113 |
+
instance["Answer"]=""
|
| 114 |
+
if "Explanation" not in instance.keys():
|
| 115 |
+
instance["Explanation"]=""
|
| 116 |
yield i, instance
|