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