yuting-wei commited on
Commit
a51ecb1
·
verified ·
1 Parent(s): 316892a

Update aceval.py

Browse files
Files changed (1) hide show
  1. aceval.py +4 -4
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 "answer" not in instance.keys():
113
- instance["answer"]=""
114
- if "explanation" not in instance.keys():
115
- instance["explanation"]=""
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