Removed duplciate entry
Browse files- swe-nerc.py +3 -2
swe-nerc.py
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
|
20 |
|
21 |
LABELS = [
|
22 |
-
|
23 |
"B-EVN",
|
24 |
"B-GRO",
|
25 |
"B-LOC",
|
@@ -132,7 +132,8 @@ class SweNERC(datasets.GeneratorBasedBuilder):
|
|
132 |
else:
|
133 |
# tokens are tab separated
|
134 |
splits = line.split("\t")
|
135 |
-
tokens.append(splits[0])
|
|
|
136 |
tag = splits[1].rstrip()
|
137 |
if tag == "O":
|
138 |
pass
|
|
|
19 |
|
20 |
|
21 |
LABELS = [
|
22 |
+
"O",
|
23 |
"B-EVN",
|
24 |
"B-GRO",
|
25 |
"B-LOC",
|
|
|
132 |
else:
|
133 |
# tokens are tab separated
|
134 |
splits = line.split("\t")
|
135 |
+
tokens.append(splits[0])
|
136 |
+
try:
|
137 |
tag = splits[1].rstrip()
|
138 |
if tag == "O":
|
139 |
pass
|