Datasets:
Tasks:
Token Classification
Modalities:
Text
Formats:
parquet
Sub-tasks:
named-entity-recognition
Languages:
English
Size:
10K - 100K
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),
|