Datasets:
Commit
·
5a13108
1
Parent(s):
395e152
Update multiconer_v2.py
Browse files- multiconer_v2.py +6 -5
multiconer_v2.py
CHANGED
|
@@ -317,8 +317,9 @@ class MultiCoNER2(datasets.GeneratorBasedBuilder):
|
|
| 317 |
ner_tags = []
|
| 318 |
else:
|
| 319 |
continue
|
| 320 |
-
|
| 321 |
-
|
| 322 |
-
|
| 323 |
-
|
| 324 |
-
|
|
|
|
|
|
| 317 |
ner_tags = []
|
| 318 |
else:
|
| 319 |
continue
|
| 320 |
+
if s_id:
|
| 321 |
+
yield guid, {
|
| 322 |
+
"id": s_id,
|
| 323 |
+
"tokens": tokens,
|
| 324 |
+
"ner_tags": ner_tags,
|
| 325 |
+
}
|