Datasets:
Tasks:
Text Classification
Modalities:
Text
Formats:
parquet
Sub-tasks:
topic-classification
Languages:
Burmese
Size:
1K - 10K
License:
parquet-converter
commited on
Commit
•
1d67247
1
Parent(s):
b9ec6c5
Update parquet files
Browse files- .gitattributes +0 -27
- README.md +0 -96
- dataset_infos.json +0 -1
- default/myanmar_news-train.parquet +3 -0
- myanmar_news.py +0 -83
.gitattributes
DELETED
@@ -1,27 +0,0 @@
|
|
1 |
-
*.7z filter=lfs diff=lfs merge=lfs -text
|
2 |
-
*.arrow filter=lfs diff=lfs merge=lfs -text
|
3 |
-
*.bin filter=lfs diff=lfs merge=lfs -text
|
4 |
-
*.bin.* filter=lfs diff=lfs merge=lfs -text
|
5 |
-
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
6 |
-
*.ftz filter=lfs diff=lfs merge=lfs -text
|
7 |
-
*.gz filter=lfs diff=lfs merge=lfs -text
|
8 |
-
*.h5 filter=lfs diff=lfs merge=lfs -text
|
9 |
-
*.joblib filter=lfs diff=lfs merge=lfs -text
|
10 |
-
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
11 |
-
*.model filter=lfs diff=lfs merge=lfs -text
|
12 |
-
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
13 |
-
*.onnx filter=lfs diff=lfs merge=lfs -text
|
14 |
-
*.ot filter=lfs diff=lfs merge=lfs -text
|
15 |
-
*.parquet filter=lfs diff=lfs merge=lfs -text
|
16 |
-
*.pb filter=lfs diff=lfs merge=lfs -text
|
17 |
-
*.pt filter=lfs diff=lfs merge=lfs -text
|
18 |
-
*.pth filter=lfs diff=lfs merge=lfs -text
|
19 |
-
*.rar filter=lfs diff=lfs merge=lfs -text
|
20 |
-
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
21 |
-
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
22 |
-
*.tflite filter=lfs diff=lfs merge=lfs -text
|
23 |
-
*.tgz filter=lfs diff=lfs merge=lfs -text
|
24 |
-
*.xz filter=lfs diff=lfs merge=lfs -text
|
25 |
-
*.zip filter=lfs diff=lfs merge=lfs -text
|
26 |
-
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
27 |
-
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.md
DELETED
@@ -1,96 +0,0 @@
|
|
1 |
-
---
|
2 |
-
annotations_creators:
|
3 |
-
- found
|
4 |
-
language_creators:
|
5 |
-
- found
|
6 |
-
language:
|
7 |
-
- my
|
8 |
-
license:
|
9 |
-
- gpl-3.0
|
10 |
-
multilinguality:
|
11 |
-
- monolingual
|
12 |
-
size_categories:
|
13 |
-
- 1K<n<10K
|
14 |
-
source_datasets:
|
15 |
-
- original
|
16 |
-
task_categories:
|
17 |
-
- text-classification
|
18 |
-
task_ids:
|
19 |
-
- topic-classification
|
20 |
-
paperswithcode_id: null
|
21 |
-
pretty_name: MyanmarNews
|
22 |
-
dataset_info:
|
23 |
-
features:
|
24 |
-
- name: text
|
25 |
-
dtype: string
|
26 |
-
- name: category
|
27 |
-
dtype:
|
28 |
-
class_label:
|
29 |
-
names:
|
30 |
-
0: Sport
|
31 |
-
1: Politic
|
32 |
-
2: Business
|
33 |
-
3: Entertainment
|
34 |
-
splits:
|
35 |
-
- name: train
|
36 |
-
num_bytes: 3797368
|
37 |
-
num_examples: 8116
|
38 |
-
download_size: 610592
|
39 |
-
dataset_size: 3797368
|
40 |
-
---
|
41 |
-
|
42 |
-
# Dataset Card for Myanmar_News
|
43 |
-
|
44 |
-
## Dataset Description
|
45 |
-
|
46 |
-
- **Repository:** https://github.com/ayehninnkhine/MyanmarNewsClassificationSystem
|
47 |
-
|
48 |
-
### Dataset Summary
|
49 |
-
|
50 |
-
The Myanmar news dataset contains article snippets in four categories:
|
51 |
-
Business, Entertainment, Politics, and Sport.
|
52 |
-
|
53 |
-
These were collected in October 2017 by Aye Hninn Khine
|
54 |
-
|
55 |
-
### Languages
|
56 |
-
|
57 |
-
Myanmar/Burmese language
|
58 |
-
|
59 |
-
## Dataset Structure
|
60 |
-
|
61 |
-
### Data Fields
|
62 |
-
|
63 |
-
- text - text from article
|
64 |
-
- category - a topic: Business, Entertainment, **Politic**, or **Sport** (note spellings)
|
65 |
-
|
66 |
-
### Data Splits
|
67 |
-
|
68 |
-
One training set (8,116 total rows)
|
69 |
-
|
70 |
-
### Source Data
|
71 |
-
|
72 |
-
#### Initial Data Collection and Normalization
|
73 |
-
|
74 |
-
Data was collected by Aye Hninn Khine
|
75 |
-
and shared on GitHub with a GPL-3.0 license.
|
76 |
-
|
77 |
-
Multiple text files were consolidated into one labeled CSV file by Nick Doiron.
|
78 |
-
|
79 |
-
## Additional Information
|
80 |
-
|
81 |
-
### Dataset Curators
|
82 |
-
|
83 |
-
Contributors to original GitHub repo:
|
84 |
-
- https://github.com/ayehninnkhine
|
85 |
-
|
86 |
-
### Licensing Information
|
87 |
-
|
88 |
-
GPL-3.0
|
89 |
-
|
90 |
-
### Citation Information
|
91 |
-
|
92 |
-
See https://github.com/ayehninnkhine/MyanmarNewsClassificationSystem
|
93 |
-
|
94 |
-
### Contributions
|
95 |
-
|
96 |
-
Thanks to [@mapmeld](https://github.com/mapmeld) for adding this dataset.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dataset_infos.json
DELETED
@@ -1 +0,0 @@
|
|
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}}
|
|
|
|
default/myanmar_news-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:408fb05767e27c0ee1e8b31eee57848006efd072639e3a203c03adaca83ff2ae
|
3 |
+
size 1185370
|
myanmar_news.py
DELETED
@@ -1,83 +0,0 @@
|
|
1 |
-
# coding=utf-8
|
2 |
-
# Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
|
3 |
-
#
|
4 |
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5 |
-
# you may not use this file except in compliance with the License.
|
6 |
-
# You may obtain a copy of the License at
|
7 |
-
#
|
8 |
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9 |
-
#
|
10 |
-
# Unless required by applicable law or agreed to in writing, software
|
11 |
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12 |
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13 |
-
# See the License for the specific language governing permissions and
|
14 |
-
# limitations under the License.
|
15 |
-
|
16 |
-
|
17 |
-
import csv
|
18 |
-
import os
|
19 |
-
|
20 |
-
import datasets
|
21 |
-
from datasets.tasks import TextClassification
|
22 |
-
|
23 |
-
|
24 |
-
# no BibTeX citation
|
25 |
-
_CITATION = ""
|
26 |
-
|
27 |
-
_DESCRIPTION = """\
|
28 |
-
The Myanmar news dataset contains article snippets in four categories:
|
29 |
-
Business, Entertainment, Politics, and Sport.
|
30 |
-
|
31 |
-
These were collected in October 2017 by Aye Hninn Khine
|
32 |
-
"""
|
33 |
-
|
34 |
-
_LICENSE = "GPL-3.0"
|
35 |
-
|
36 |
-
_URLs = {"default": "https://github.com/Georeactor/MyanmarNewsClassificationSystem/archive/main.zip"}
|
37 |
-
|
38 |
-
|
39 |
-
class MyanmarNews(datasets.GeneratorBasedBuilder):
|
40 |
-
VERSION = datasets.Version("1.0.1")
|
41 |
-
|
42 |
-
def _info(self):
|
43 |
-
class_names = ["Sport", "Politic", "Business", "Entertainment"]
|
44 |
-
features = datasets.Features(
|
45 |
-
{
|
46 |
-
"text": datasets.Value("string"),
|
47 |
-
"category": datasets.ClassLabel(names=class_names),
|
48 |
-
}
|
49 |
-
)
|
50 |
-
return datasets.DatasetInfo(
|
51 |
-
description=_DESCRIPTION,
|
52 |
-
features=features,
|
53 |
-
supervised_keys=None,
|
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):
|
61 |
-
my_urls = _URLs[self.config.name]
|
62 |
-
data_dir = dl_manager.download_and_extract(my_urls)
|
63 |
-
return [
|
64 |
-
datasets.SplitGenerator(
|
65 |
-
name=datasets.Split.TRAIN,
|
66 |
-
gen_kwargs={
|
67 |
-
"filepath": os.path.join(data_dir, "MyanmarNewsClassificationSystem-main", "topics.csv"),
|
68 |
-
"split": "train",
|
69 |
-
},
|
70 |
-
),
|
71 |
-
]
|
72 |
-
|
73 |
-
def _generate_examples(self, filepath, split):
|
74 |
-
with open(filepath, encoding="utf-8") as f:
|
75 |
-
rdr = csv.reader(f, delimiter="\t")
|
76 |
-
next(rdr)
|
77 |
-
rownum = 0
|
78 |
-
for row in rdr:
|
79 |
-
rownum += 1
|
80 |
-
yield rownum, {
|
81 |
-
"text": row[0],
|
82 |
-
"category": row[1],
|
83 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|