ktagowski commited on
Commit
fa2dc33
1 Parent(s): bd70953

Fix file encoding

Browse files
Files changed (1) hide show
  1. polemo2-official.py +1 -1
polemo2-official.py CHANGED
@@ -160,7 +160,7 @@ class PolEmo2(datasets.GeneratorBasedBuilder):
160
 
161
  gid = 0
162
  for path in filepath:
163
- with open(path, "r") as f:
164
  for line in f:
165
  splitted_line = line.split(" ")
166
  yield gid, {
 
160
 
161
  gid = 0
162
  for path in filepath:
163
+ with open(path, "r", encoding="utf-8") as f:
164
  for line in f:
165
  splitted_line = line.split(" ")
166
  yield gid, {