vesteinn commited on
Commit
d530faa
1 Parent(s): b0fdc81

ner to pos fix

Browse files
Files changed (1) hide show
  1. sosialurin-faroese-pos.py +2 -2
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
- "ner_tags": datasets.Sequence(
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
- ner_tags.append(splits[1].rstrip())
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