Datasets:
Tasks:
Token Classification
Sub-tasks:
named-entity-recognition
Languages:
Yoruba
Multilinguality:
monolingual
Size Categories:
1K<n<10K
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
- yoruba_gv_ner.py +1 -1
yoruba_gv_ner.py
CHANGED
@@ -139,7 +139,7 @@ class YorubaGvNer(datasets.GeneratorBasedBuilder):
|
|
139 |
ner_tags = []
|
140 |
for line in f:
|
141 |
line = line.strip()
|
142 |
-
if line
|
143 |
if tokens:
|
144 |
yield guid, {
|
145 |
"id": str(guid),
|
139 |
ner_tags = []
|
140 |
for line in f:
|
141 |
line = line.strip()
|
142 |
+
if line == "" or line == "\n":
|
143 |
if tokens:
|
144 |
yield guid, {
|
145 |
"id": str(guid),
|