Datasets:
Tasks:
Token Classification
Sub-tasks:
named-entity-recognition
Languages:
English
Multilinguality:
monolingual
Size Categories:
10K<n<100K
Language Creators:
expert-generated
Annotations Creators:
expert-generated
Source Datasets:
original
Tags:
License:
Update files from the datasets library (from 1.5.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.5.0
- bc2gm_corpus.py +1 -1
bc2gm_corpus.py
CHANGED
@@ -119,7 +119,7 @@ class Bc2gmCorpus(datasets.GeneratorBasedBuilder):
|
|
119 |
tokens = []
|
120 |
ner_tags = []
|
121 |
for line in f:
|
122 |
-
if line
|
123 |
if tokens:
|
124 |
yield guid, {
|
125 |
"id": str(guid),
|
|
|
119 |
tokens = []
|
120 |
ner_tags = []
|
121 |
for line in f:
|
122 |
+
if line == "" or line == "\n":
|
123 |
if tokens:
|
124 |
yield guid, {
|
125 |
"id": str(guid),
|