wics commited on
Commit
f4d03d5
1 Parent(s): 893beeb

Update strategy-qa.py

Browse files
Files changed (1) hide show
  1. strategy-qa.py +2 -2
strategy-qa.py CHANGED
@@ -81,6 +81,6 @@ class strategyQA(datasets.GeneratorBasedBuilder):
81
  with open(filepath,'r',encoding="utf-8") as f:
82
  print(filepath)
83
  data = json.loads(f.read())
84
- for article_idx,single_data in enumerate(data):
85
 
86
- yield f"{article_idx}_{i}", single_data
 
81
  with open(filepath,'r',encoding="utf-8") as f:
82
  print(filepath)
83
  data = json.loads(f.read())
84
+ for idx,single_data in enumerate(data):
85
 
86
+ yield f"{idx}", single_data