ktagowski commited on
Commit
b42580d
1 Parent(s): 9acfc73

Fix encoding in reader

Browse files
Files changed (1) hide show
  1. nkjp-pos.py +1 -1
nkjp-pos.py CHANGED
@@ -124,7 +124,7 @@ class NKJPPOS(datasets.GeneratorBasedBuilder):
124
  def _generate_examples(
125
  self, filepath: str
126
  ) -> Generator[Tuple[int, Dict[str, str]], None, None]:
127
- with open(filepath, 'r') as f:
128
  reader = csv.reader(f, delimiter='\t', quoting=csv.QUOTE_NONE)
129
 
130
  tokens = []
 
124
  def _generate_examples(
125
  self, filepath: str
126
  ) -> Generator[Tuple[int, Dict[str, str]], None, None]:
127
+ with open(filepath, 'r', encoding="utf-8") as f:
128
  reader = csv.reader(f, delimiter='\t', quoting=csv.QUOTE_NONE)
129
 
130
  tokens = []