Datasets:
Tasks:
Token Classification
Sub-tasks:
named-entity-recognition
Languages:
English
Size:
1K<n<10K
License:
Update files from the datasets library (from 1.5.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.5.0
- ncbi_disease.py +1 -1
ncbi_disease.py
CHANGED
@@ -121,7 +121,7 @@ class NCBIDisease(datasets.GeneratorBasedBuilder):
|
|
121 |
tokens = []
|
122 |
ner_tags = []
|
123 |
for line in f:
|
124 |
-
if line
|
125 |
if tokens:
|
126 |
yield guid, {
|
127 |
"id": str(guid),
|
|
|
121 |
tokens = []
|
122 |
ner_tags = []
|
123 |
for line in f:
|
124 |
+
if line == "" or line == "\n":
|
125 |
if tokens:
|
126 |
yield guid, {
|
127 |
"id": str(guid),
|