Datasets:
Update csatqa.py
Browse files
csatqa.py
CHANGED
@@ -65,7 +65,7 @@ class CSATQA(datasets.GeneratorBasedBuilder):
|
|
65 |
]
|
66 |
|
67 |
def _generate_examples(self, filepath):
|
68 |
-
with open(
|
69 |
for key, row in enumerate(f):
|
70 |
data = json.loads(row)
|
71 |
if data["Category"] == self.config.name:
|
|
|
65 |
]
|
66 |
|
67 |
def _generate_examples(self, filepath):
|
68 |
+
with open(filepath, encoding="utf-8") as f:
|
69 |
for key, row in enumerate(f):
|
70 |
data = json.loads(row)
|
71 |
if data["Category"] == self.config.name:
|