Datasets:
Commit
·
b50ea50
1
Parent(s):
350e002
Update multiconer_v2.py
Browse files- multiconer_v2.py +2 -0
multiconer_v2.py
CHANGED
|
@@ -256,6 +256,7 @@ class MultiCoNER2(datasets.GeneratorBasedBuilder):
|
|
| 256 |
"id": guid,
|
| 257 |
"sample_id": s_id,
|
| 258 |
"tokens": tokens,
|
|
|
|
| 259 |
"ner_tags": ner_tags,
|
| 260 |
}
|
| 261 |
s_id = None
|
|
@@ -269,6 +270,7 @@ class MultiCoNER2(datasets.GeneratorBasedBuilder):
|
|
| 269 |
"id": guid,
|
| 270 |
"sample_id": s_id,
|
| 271 |
"tokens": tokens,
|
|
|
|
| 272 |
"ner_tags": ner_tags,
|
| 273 |
}
|
| 274 |
|
|
|
|
| 256 |
"id": guid,
|
| 257 |
"sample_id": s_id,
|
| 258 |
"tokens": tokens,
|
| 259 |
+
"ner_tags_index": ner_tags,
|
| 260 |
"ner_tags": ner_tags,
|
| 261 |
}
|
| 262 |
s_id = None
|
|
|
|
| 270 |
"id": guid,
|
| 271 |
"sample_id": s_id,
|
| 272 |
"tokens": tokens,
|
| 273 |
+
"ner_tags_index": ner_tags,
|
| 274 |
"ner_tags": ner_tags,
|
| 275 |
}
|
| 276 |
|