vesteinn commited on
Commit
b8648e7
1 Parent(s): 86836ad

Removed duplciate entry

Browse files
Files changed (1) hide show
  1. swe-nerc.py +1 -3
swe-nerc.py CHANGED
@@ -32,7 +32,6 @@ LABELS = [
32
  "I-GRO",
33
  "I-LOC",
34
  "I-MNT",
35
- "O",
36
  "I-PRS",
37
  "I-SMP",
38
  "I-TME",
@@ -133,8 +132,7 @@ class SweNERC(datasets.GeneratorBasedBuilder):
133
  else:
134
  # tokens are tab separated
135
  splits = line.split("\t")
136
- tokens.append(splits[0])
137
- try:
138
  tag = splits[1].rstrip()
139
  if tag == "O":
140
  pass
 
32
  "I-GRO",
33
  "I-LOC",
34
  "I-MNT",
 
35
  "I-PRS",
36
  "I-SMP",
37
  "I-TME",
 
132
  else:
133
  # tokens are tab separated
134
  splits = line.split("\t")
135
+ tokens.append(splits[0])splits[1].rstrip()
 
136
  tag = splits[1].rstrip()
137
  if tag == "O":
138
  pass