anand-s commited on
Commit
1043494
·
verified ·
1 Parent(s): c6b4f6a

Update test_repo.py

Browse files
Files changed (1) hide show
  1. test_repo.py +2 -8
test_repo.py CHANGED
@@ -196,8 +196,7 @@ class TestRepo(datasets.GeneratorBasedBuilder):
196
  }
197
  key_idx +=1
198
  elif split in ["val_context_mcqa", "test_context_mcqa"]:
199
- for item in data["few_shot_prompt"]:
200
- print(item)
201
  yield key_idx, {
202
  "prompt": data["prompt"],
203
  "question": data["question"],
@@ -206,11 +205,6 @@ class TestRepo(datasets.GeneratorBasedBuilder):
206
  "num_options": data["num_options"],
207
  "question_type": data["question_type"],
208
  "dataset_name": os.path.split(filepath)[-1].replace(".jsonl",""),
209
- "few_shot_prompt": [{
210
- "question": item["question"],
211
- "answer": item["answer"],
212
- "options": item["options"],
213
- "context": item["context"],
214
- } for item in data["few_shot_prompt"]]
215
  }
216
  key_idx +=1
 
196
  }
197
  key_idx +=1
198
  elif split in ["val_context_mcqa", "test_context_mcqa"]:
199
+
 
200
  yield key_idx, {
201
  "prompt": data["prompt"],
202
  "question": data["question"],
 
205
  "num_options": data["num_options"],
206
  "question_type": data["question_type"],
207
  "dataset_name": os.path.split(filepath)[-1].replace(".jsonl",""),
208
+ "few_shot_prompt": data["few_shot_prompt"]
 
 
 
 
 
209
  }
210
  key_idx +=1