Datasets:
Tasks:
Text Classification
Modalities:
Text
Sub-tasks:
sentiment-classification
Languages:
Polish
Size:
100K - 1M
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, {
|