Datasets:
Tasks:
Text Classification
Modalities:
Text
Formats:
parquet
Sub-tasks:
topic-classification
Languages:
Hausa
Size:
1K - 10K
License:
Update files from the datasets library (from 1.8.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.8.0
- dataset_infos.json +1 -1
- hausa_voa_topics.py +2 -0
dataset_infos.json
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"default": {"description": "A collection of news article headlines in Hausa from VOA Hausa
|
|
|
1 |
+
{"default": {"description": "A collection of news article headlines in Hausa from VOA Hausa.\nEach headline is labeled with one of the following classes: Nigeria,\nAfrica, World, Health or Politics.\n\nThe dataset was presented in the paper:\nHedderich, Adelani, Zhu, Alabi, Markus, Klakow: Transfer Learning and\nDistant Supervision for Multilingual Transformer Models: A Study on\nAfrican Languages (EMNLP 2020).\n", "citation": "@inproceedings{hedderich-etal-2020-transfer,\n title = \"Transfer Learning and Distant Supervision for Multilingual Transformer Models: A Study on African Languages\",\n author = \"Hedderich, Michael A. and\n Adelani, David and\n Zhu, Dawei and\n Alabi, Jesujoba and\n Markus, Udia and\n Klakow, Dietrich\",\n booktitle = \"Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP)\",\n year = \"2020\",\n publisher = \"Association for Computational Linguistics\",\n url = \"https://www.aclweb.org/anthology/2020.emnlp-main.204\",\n doi = \"10.18653/v1/2020.emnlp-main.204\",\n}\n", "homepage": "https://github.com/uds-lsv/transfer-distant-transformer-african", "license": "", "features": {"news_title": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 5, "names": ["Africa", "Health", "Nigeria", "Politics", "World"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": [{"task": "text-classification", "text_column": "news_title", "label_column": "label", "labels": ["Africa", "Health", "Nigeria", "Politics", "World"]}], "builder_name": "hausa_voa_topics", "config_name": "default", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 144932, "num_examples": 2045, "dataset_name": "hausa_voa_topics"}, "validation": {"name": "validation", "num_bytes": 20565, "num_examples": 290, "dataset_name": "hausa_voa_topics"}, "test": {"name": "test", "num_bytes": 41195, "num_examples": 582, "dataset_name": "hausa_voa_topics"}}, "download_checksums": {"https://raw.githubusercontent.com/uds-lsv/transfer-distant-transformer-african/master/data/hausa_newsclass/train_clean.tsv": {"num_bytes": 137306, "checksum": "662bf8849d34f4163032afede21c2f2d103a956a6d6d6925b7a8b2577f8e5c62"}, "https://raw.githubusercontent.com/uds-lsv/transfer-distant-transformer-african/master/data/hausa_newsclass/dev.tsv": {"num_bytes": 19501, "checksum": "ca5629d297dec8c6f7878180ba2aa0a5852bafb57acc6b3ea4dc43cf600446e7"}, "https://raw.githubusercontent.com/uds-lsv/transfer-distant-transformer-african/master/data/hausa_newsclass/test.tsv": {"num_bytes": 39017, "checksum": "a174e3071e4d1e4713fb73aa93de583909d3bf5231abd0d09ab6ae4087a8f79b"}}, "download_size": 195824, "post_processing_size": null, "dataset_size": 206692, "size_in_bytes": 402516}}
|
hausa_voa_topics.py
CHANGED
@@ -20,6 +20,7 @@
|
|
20 |
import csv
|
21 |
|
22 |
import datasets
|
|
|
23 |
|
24 |
|
25 |
_DESCRIPTION = """\
|
@@ -69,6 +70,7 @@ class HausaVOATopics(datasets.GeneratorBasedBuilder):
|
|
69 |
),
|
70 |
homepage="https://github.com/uds-lsv/transfer-distant-transformer-african",
|
71 |
citation=_CITATION,
|
|
|
72 |
)
|
73 |
|
74 |
def _split_generators(self, dl_manager):
|
|
|
20 |
import csv
|
21 |
|
22 |
import datasets
|
23 |
+
from datasets.tasks import TextClassification
|
24 |
|
25 |
|
26 |
_DESCRIPTION = """\
|
|
|
70 |
),
|
71 |
homepage="https://github.com/uds-lsv/transfer-distant-transformer-african",
|
72 |
citation=_CITATION,
|
73 |
+
task_templates=[TextClassification(text_column="news_title", label_column="label")],
|
74 |
)
|
75 |
|
76 |
def _split_generators(self, dl_manager):
|