Datasets:
Tasks:
Text Classification
Modalities:
Text
Formats:
parquet
Sub-tasks:
topic-classification
Languages:
Burmese
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
- myanmar_news.py +2 -0
dataset_infos.json
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"default": {"description": "The Myanmar news dataset contains article snippets in four categories:\nBusiness, Entertainment, Politics, and Sport.\n\nThese were collected in October 2017 by Aye Hninn Khine\n", "citation": "", "homepage": "https://github.com/ayehninnkhine/MyanmarNewsClassificationSystem", "license": "GPL-3.0", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "category": {"num_classes": 4, "names": ["Sport", "Politic", "Business", "Entertainment"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "builder_name": "myanmar_news", "config_name": "default", "version": {"version_str": "1.0.1", "description": null, "major": 1, "minor": 0, "patch": 1}, "splits": {"train": {"name": "train", "num_bytes": 3797368, "num_examples": 8116, "dataset_name": "myanmar_news"}}, "download_checksums": {"https://github.com/Georeactor/MyanmarNewsClassificationSystem/archive/main.zip": {"num_bytes": 610592, "checksum": "e0558e4ea389aee3a31a4b9eb86160ded8c3bde776723177bc08dd4d20c8d980"}}, "download_size": 610592, "post_processing_size": null, "dataset_size": 3797368, "size_in_bytes": 4407960}}
|
|
|
1 |
+
{"default": {"description": "The Myanmar news dataset contains article snippets in four categories:\nBusiness, Entertainment, Politics, and Sport.\n\nThese were collected in October 2017 by Aye Hninn Khine\n", "citation": "", "homepage": "https://github.com/ayehninnkhine/MyanmarNewsClassificationSystem", "license": "GPL-3.0", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "category": {"num_classes": 4, "names": ["Sport", "Politic", "Business", "Entertainment"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": [{"task": "text-classification", "text_column": "text", "label_column": "category", "labels": ["Business", "Entertainment", "Politic", "Sport"]}], "builder_name": "myanmar_news", "config_name": "default", "version": {"version_str": "1.0.1", "description": null, "major": 1, "minor": 0, "patch": 1}, "splits": {"train": {"name": "train", "num_bytes": 3797368, "num_examples": 8116, "dataset_name": "myanmar_news"}}, "download_checksums": {"https://github.com/Georeactor/MyanmarNewsClassificationSystem/archive/main.zip": {"num_bytes": 610592, "checksum": "e0558e4ea389aee3a31a4b9eb86160ded8c3bde776723177bc08dd4d20c8d980"}}, "download_size": 610592, "post_processing_size": null, "dataset_size": 3797368, "size_in_bytes": 4407960}}
|
myanmar_news.py
CHANGED
@@ -18,6 +18,7 @@ import csv
|
|
18 |
import os
|
19 |
|
20 |
import datasets
|
|
|
21 |
|
22 |
|
23 |
# no BibTeX citation
|
@@ -53,6 +54,7 @@ class MyanmarNews(datasets.GeneratorBasedBuilder):
|
|
53 |
homepage="https://github.com/ayehninnkhine/MyanmarNewsClassificationSystem",
|
54 |
license=_LICENSE,
|
55 |
citation=_CITATION,
|
|
|
56 |
)
|
57 |
|
58 |
def _split_generators(self, dl_manager):
|
|
|
18 |
import os
|
19 |
|
20 |
import datasets
|
21 |
+
from datasets.tasks import TextClassification
|
22 |
|
23 |
|
24 |
# no BibTeX citation
|
|
|
54 |
homepage="https://github.com/ayehninnkhine/MyanmarNewsClassificationSystem",
|
55 |
license=_LICENSE,
|
56 |
citation=_CITATION,
|
57 |
+
task_templates=[TextClassification(text_column="text", label_column="category")],
|
58 |
)
|
59 |
|
60 |
def _split_generators(self, dl_manager):
|