Update strategy-qa.py
Browse files- 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
|
85 |
|
86 |
-
yield f"{
|
|
|
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
|