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
- species_800.py +1 -1
species_800.py
CHANGED
@@ -123,7 +123,7 @@ class Species800(datasets.GeneratorBasedBuilder):
|
|
123 |
tokens = []
|
124 |
ner_tags = []
|
125 |
for line in f:
|
126 |
-
if line
|
127 |
if tokens:
|
128 |
yield guid, {
|
129 |
"id": str(guid),
|
|
|
123 |
tokens = []
|
124 |
ner_tags = []
|
125 |
for line in f:
|
126 |
+
if line == "" or line == "\n":
|
127 |
if tokens:
|
128 |
yield guid, {
|
129 |
"id": str(guid),
|