ner to pos fix
Browse files
sosialurin-faroese-pos.py
CHANGED
@@ -448,7 +448,7 @@ class SosialurinPOS(datasets.GeneratorBasedBuilder):
|
|
448 |
{
|
449 |
"id": datasets.Value("string"),
|
450 |
"tokens": datasets.Sequence(datasets.Value("string")),
|
451 |
-
"
|
452 |
datasets.features.ClassLabel(
|
453 |
names=LABELS
|
454 |
)
|
@@ -493,7 +493,7 @@ class SosialurinPOS(datasets.GeneratorBasedBuilder):
|
|
493 |
splits = line.split("\t")
|
494 |
tokens.append(splits[0])
|
495 |
try:
|
496 |
-
|
497 |
except:
|
498 |
print(splits)
|
499 |
raise
|
|
|
448 |
{
|
449 |
"id": datasets.Value("string"),
|
450 |
"tokens": datasets.Sequence(datasets.Value("string")),
|
451 |
+
"pos_tags": datasets.Sequence(
|
452 |
datasets.features.ClassLabel(
|
453 |
names=LABELS
|
454 |
)
|
|
|
493 |
splits = line.split("\t")
|
494 |
tokens.append(splits[0])
|
495 |
try:
|
496 |
+
pos_tags.append(splits[1].rstrip())
|
497 |
except:
|
498 |
print(splits)
|
499 |
raise
|