ryo0634 commited on
Commit
fb9b134
1 Parent(s): a76f17b

Update wrime-sentiment.py

Browse files

specify default encoding as "utf-8"

Files changed (1) hide show
  1. wrime-sentiment.py +1 -1
wrime-sentiment.py CHANGED
@@ -74,7 +74,7 @@ class WrimeSentiment(datasets.GeneratorBasedBuilder):
74
  logger.info(f"generating examples from {filepath}")
75
  _key = 0
76
 
77
- with open(filepath, "r") as f:
78
  reader = csv.DictReader(f, delimiter="\t")
79
  for data in reader:
80
  if data["Train/Dev/Test"].lower() != split:
 
74
  logger.info(f"generating examples from {filepath}")
75
  _key = 0
76
 
77
+ with open(filepath, "r", encoding="utf-8") as f:
78
  reader = csv.DictReader(f, delimiter="\t")
79
  for data in reader:
80
  if data["Train/Dev/Test"].lower() != split: