Datasets:
Update csatqa.py
Browse files
csatqa.py
CHANGED
@@ -66,7 +66,4 @@ class CSATQA(datasets.GeneratorBasedBuilder):
|
|
66 |
with open(filepath, encoding="utf-8") as f:
|
67 |
for key, row in enumerate(f):
|
68 |
data = json.loads(row)
|
69 |
-
|
70 |
-
data["gold"] = int(data["gold"]) - 1
|
71 |
-
data.pop("split")
|
72 |
-
yield key, data
|
|
|
66 |
with open(filepath, encoding="utf-8") as f:
|
67 |
for key, row in enumerate(f):
|
68 |
data = json.loads(row)
|
69 |
+
yield key, data
|
|
|
|
|
|