set the default encoding to utf-8
Browse files- aio_from_tohoku.py +1 -1
aio_from_tohoku.py
CHANGED
@@ -60,7 +60,7 @@ class Aio(datasets.GeneratorBasedBuilder):
|
|
60 |
return split_generators
|
61 |
|
62 |
def _generate_examples(self, filepath: str) -> Iterator[Tuple[int, Dict[str, Any]]]:
|
63 |
-
with open(filepath) as f:
|
64 |
for i, line in enumerate(f):
|
65 |
item = json.loads(line)
|
66 |
yield i, item
|
|
|
60 |
return split_generators
|
61 |
|
62 |
def _generate_examples(self, filepath: str) -> Iterator[Tuple[int, Dict[str, Any]]]:
|
63 |
+
with open(filepath, encoding="utf-8") as f:
|
64 |
for i, line in enumerate(f):
|
65 |
item = json.loads(line)
|
66 |
yield i, item
|