Datasets:
Tasks:
Token Classification
Sub-tasks:
named-entity-recognition
Languages:
Hausa
Size:
1K<n<10K
License:
Update files from the datasets library (from 1.4.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.4.0
- hausa_voa_ner.py +4 -3
hausa_voa_ner.py
CHANGED
@@ -18,11 +18,12 @@
|
|
18 |
|
19 |
from __future__ import absolute_import, division, print_function
|
20 |
|
21 |
-
import logging
|
22 |
-
|
23 |
import datasets
|
24 |
|
25 |
|
|
|
|
|
|
|
26 |
# TODO: Add BibTeX citation
|
27 |
# Find for instance the citation on arxiv or on the dataset repo/website
|
28 |
_CITATION = """\
|
@@ -132,7 +133,7 @@ class HausaVoaNer(datasets.GeneratorBasedBuilder):
|
|
132 |
]
|
133 |
|
134 |
def _generate_examples(self, filepath):
|
135 |
-
|
136 |
with open(filepath, encoding="utf-8") as f:
|
137 |
guid = 0
|
138 |
tokens = []
|
|
|
18 |
|
19 |
from __future__ import absolute_import, division, print_function
|
20 |
|
|
|
|
|
21 |
import datasets
|
22 |
|
23 |
|
24 |
+
logger = datasets.logging.get_logger(__name__)
|
25 |
+
|
26 |
+
|
27 |
# TODO: Add BibTeX citation
|
28 |
# Find for instance the citation on arxiv or on the dataset repo/website
|
29 |
_CITATION = """\
|
|
|
133 |
]
|
134 |
|
135 |
def _generate_examples(self, filepath):
|
136 |
+
logger.info("⏳ Generating examples from = %s", filepath)
|
137 |
with open(filepath, encoding="utf-8") as f:
|
138 |
guid = 0
|
139 |
tokens = []
|