Datasets:
Commit
·
57ec108
1
Parent(s):
8c5f2ef
Fixed separator (#2)
Browse files- Fixed separator (ca187a9b46120706dd849df305f319bd748ff631)
Co-authored-by: Alejandro Sierra <[email protected]>
- 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:
|