Update test_repo.py
Browse files- test_repo.py +2 -2
test_repo.py
CHANGED
@@ -184,14 +184,14 @@ class TestRepo(datasets.GeneratorBasedBuilder):
|
|
184 |
"prompt": data["prompt"],
|
185 |
"question": data["question"],
|
186 |
"options": data["options"],
|
187 |
-
"answer": data["answer"]
|
188 |
"num_options": data["num_options"],
|
189 |
"context": data["context"],
|
190 |
"question_type": data["question_type"],
|
191 |
"dataset_name": os.path.split(filepath)[-1].replace(".jsonl","")
|
192 |
}
|
193 |
key_idx +=1
|
194 |
-
elif split in ["
|
195 |
yield key_idx, {
|
196 |
"prompt": data["prompt"],
|
197 |
"question": data["question"],
|
|
|
184 |
"prompt": data["prompt"],
|
185 |
"question": data["question"],
|
186 |
"options": data["options"],
|
187 |
+
"answer": data["answer"],
|
188 |
"num_options": data["num_options"],
|
189 |
"context": data["context"],
|
190 |
"question_type": data["question_type"],
|
191 |
"dataset_name": os.path.split(filepath)[-1].replace(".jsonl","")
|
192 |
}
|
193 |
key_idx +=1
|
194 |
+
elif split in ["val_context_mcqa", "test_context_mcqa"]:
|
195 |
yield key_idx, {
|
196 |
"prompt": data["prompt"],
|
197 |
"question": data["question"],
|