Datasets:
Commit
·
469632b
1
Parent(s):
e781983
Update multiconer_v2.py
Browse files- multiconer_v2.py +7 -1
multiconer_v2.py
CHANGED
|
@@ -294,7 +294,13 @@ class MultiCoNER2(datasets.GeneratorBasedBuilder):
|
|
| 294 |
ner_tags = []
|
| 295 |
|
| 296 |
for line in f:
|
| 297 |
-
yield guid, {'id': '0', '
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 298 |
guid+=1
|
| 299 |
|
| 300 |
# if line.strip().startswith("# id"):
|
|
|
|
| 294 |
ner_tags = []
|
| 295 |
|
| 296 |
for line in f:
|
| 297 |
+
yield guid, {'id': '0', 'tokens':line.split(), 'ner_tags': ['O',
|
| 298 |
+
'B-Facility',
|
| 299 |
+
'I-Facility',
|
| 300 |
+
'B-OtherLOC',
|
| 301 |
+
'I-OtherLOC',
|
| 302 |
+
'B-HumanSettlement',
|
| 303 |
+
'I-HumanSettlement']}
|
| 304 |
guid+=1
|
| 305 |
|
| 306 |
# if line.strip().startswith("# id"):
|