Datasets:
Update csatqa.py
Browse files
csatqa.py
CHANGED
@@ -66,7 +66,7 @@ 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 |
-
if data["
|
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 |
+
if data["Category"] == self.config.name:
|
70 |
data["gold"] = int(data["gold"]) - 1
|
71 |
data.pop("split")
|
72 |
yield key, data
|