Datasets:
Fixed separator
#2
by
alejosierra
- opened
- multiconer_v2.py +2 -2
multiconer_v2.py
CHANGED
|
@@ -245,9 +245,9 @@ class MultiCoNER2(datasets.GeneratorBasedBuilder):
|
|
| 245 |
guid += 1
|
| 246 |
tokens = []
|
| 247 |
ner_tags = []
|
| 248 |
-
elif '_ _' in line:
|
| 249 |
# Separator is " _ _ "
|
| 250 |
-
splits = line.split("_ _")
|
| 251 |
tokens.append(splits[0].strip())
|
| 252 |
ner_tags.append(splits[1].strip())
|
| 253 |
elif len(line.strip()) == 0:
|
|
|
|
| 245 |
guid += 1
|
| 246 |
tokens = []
|
| 247 |
ner_tags = []
|
| 248 |
+
elif ' _ _ ' in line:
|
| 249 |
# Separator is " _ _ "
|
| 250 |
+
splits = line.split(" _ _ ")
|
| 251 |
tokens.append(splits[0].strip())
|
| 252 |
ner_tags.append(splits[1].strip())
|
| 253 |
elif len(line.strip()) == 0:
|