Update aio.py
Browse filesspecify default encoding as "utf-8"
aio.py
CHANGED
@@ -59,7 +59,7 @@ class Aio(datasets.GeneratorBasedBuilder):
|
|
59 |
def _generate_examples(self, filepath: str) -> Tuple[str, Dict[str, Any]]:
|
60 |
logger.info(f"generating examples from {filepath}")
|
61 |
_key = 0
|
62 |
-
with open(filepath, "r") as f:
|
63 |
|
64 |
for line in f:
|
65 |
line = line.strip()
|
|
|
59 |
def _generate_examples(self, filepath: str) -> Tuple[str, Dict[str, Any]]:
|
60 |
logger.info(f"generating examples from {filepath}")
|
61 |
_key = 0
|
62 |
+
with open(filepath, "r", encoding="utf-8") as f:
|
63 |
|
64 |
for line in f:
|
65 |
line = line.strip()
|