Datasets:
Update wrime-sentiment.py
Browse filesspecify default encoding as "utf-8"
- 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:
|