Datasets:
Tasks:
Text Classification
Sub-tasks:
sentiment-classification
Languages:
Polish
Multilinguality:
monolingual
Language Creators:
other
Annotations Creators:
expert-generated
Source Datasets:
original
Tags:
License:
Fix file encoding
Browse files- 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, {
|