Datasets:

Modalities:
Text
Libraries:
Datasets
ryo0634 commited on
Commit
94eb75f
1 Parent(s): 1665640

Update aio.py

Browse files

specify default encoding as "utf-8"

Files changed (1) hide show
  1. aio.py +1 -1
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()