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