Datasets:
Tasks:
Other
Modalities:
Text
Sub-tasks:
part-of-speech
Languages:
Polish
Size:
10K - 100K
Tags:
structure-prediction
License:
Fix encoding in reader
Browse files- nkjp-pos.py +1 -1
nkjp-pos.py
CHANGED
@@ -124,7 +124,7 @@ class NKJPPOS(datasets.GeneratorBasedBuilder):
|
|
124 |
def _generate_examples(
|
125 |
self, filepath: str
|
126 |
) -> Generator[Tuple[int, Dict[str, str]], None, None]:
|
127 |
-
with open(filepath, 'r') as f:
|
128 |
reader = csv.reader(f, delimiter='\t', quoting=csv.QUOTE_NONE)
|
129 |
|
130 |
tokens = []
|
|
|
124 |
def _generate_examples(
|
125 |
self, filepath: str
|
126 |
) -> Generator[Tuple[int, Dict[str, str]], None, None]:
|
127 |
+
with open(filepath, 'r', encoding="utf-8") as f:
|
128 |
reader = csv.reader(f, delimiter='\t', quoting=csv.QUOTE_NONE)
|
129 |
|
130 |
tokens = []
|