Datasets:
Tasks:
Text Classification
Sub-tasks:
multi-class-classification
Languages:
Mongolian
Size:
10K<n<100K
License:
Commit
•
4593f01
0
Parent(s):
Update files from the datasets library (from 1.9.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.9.0
- .gitattributes +27 -0
- README.md +152 -0
- dataset_infos.json +1 -0
- dummy/0.0.0/dummy_data.zip +3 -0
- eduge.py +83 -0
.gitattributes
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
ADDED
@@ -0,0 +1,152 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
pretty_name: Eduge
|
3 |
+
annotations_creators:
|
4 |
+
- expert-generated
|
5 |
+
language_creators:
|
6 |
+
- expert-generated
|
7 |
+
languages:
|
8 |
+
- mn
|
9 |
+
licenses:
|
10 |
+
- unknown
|
11 |
+
multilinguality:
|
12 |
+
- monolingual
|
13 |
+
size_categories:
|
14 |
+
- 10K<n<100K
|
15 |
+
source_datasets:
|
16 |
+
- original
|
17 |
+
task_categories:
|
18 |
+
- text-classification
|
19 |
+
task_ids:
|
20 |
+
- multi-class-classification
|
21 |
+
---
|
22 |
+
|
23 |
+
|
24 |
+
# Dataset Card for Eduge
|
25 |
+
|
26 |
+
## Table of Contents
|
27 |
+
- [Dataset Description](#dataset-description)
|
28 |
+
- [Dataset Summary](#dataset-summary)
|
29 |
+
- [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
|
30 |
+
- [Languages](#languages)
|
31 |
+
- [Dataset Structure](#dataset-structure)
|
32 |
+
- [Data Instances](#data-instances)
|
33 |
+
- [Data Fields](#data-fields)
|
34 |
+
- [Data Splits](#data-splits)
|
35 |
+
- [Dataset Creation](#dataset-creation)
|
36 |
+
- [Curation Rationale](#curation-rationale)
|
37 |
+
- [Source Data](#source-data)
|
38 |
+
- [Annotations](#annotations)
|
39 |
+
- [Personal and Sensitive Information](#personal-and-sensitive-information)
|
40 |
+
- [Considerations for Using the Data](#considerations-for-using-the-data)
|
41 |
+
- [Social Impact of Dataset](#social-impact-of-dataset)
|
42 |
+
- [Discussion of Biases](#discussion-of-biases)
|
43 |
+
- [Other Known Limitations](#other-known-limitations)
|
44 |
+
- [Additional Information](#additional-information)
|
45 |
+
- [Dataset Curators](#dataset-curators)
|
46 |
+
- [Licensing Information](#licensing-information)
|
47 |
+
- [Citation Information](#citation-information)
|
48 |
+
- [Contributions](#contributions)
|
49 |
+
|
50 |
+
## Dataset Description
|
51 |
+
|
52 |
+
- **Homepage:** http://eduge.mn/
|
53 |
+
- **Repository:** https://github.com/tugstugi/mongolian-nlp
|
54 |
+
- **Paper:** [Needs More Information]
|
55 |
+
- **Leaderboard:** [Needs More Information]
|
56 |
+
- **Point of Contact:** [Needs More Information]
|
57 |
+
|
58 |
+
### Dataset Summary
|
59 |
+
|
60 |
+
Eduge news classification dataset provided by Bolorsoft LLC. Used to train the Eduge.mn production news classifier
|
61 |
+
75K news articles in 9 categories: урлаг соёл, эдийн засаг, эрүүл мэнд, хууль, улс төр, спорт, технологи, боловсрол and байгал орчин
|
62 |
+
|
63 |
+
### Supported Tasks and Leaderboards
|
64 |
+
|
65 |
+
- `text-classification`: We can transform the above into a 9-class classification task.
|
66 |
+
|
67 |
+
### Languages
|
68 |
+
|
69 |
+
The text in the dataset is in Mongolian
|
70 |
+
|
71 |
+
## Dataset Structure
|
72 |
+
|
73 |
+
### Data Instances
|
74 |
+
|
75 |
+
For the `default` configuration:
|
76 |
+
```
|
77 |
+
{
|
78 |
+
'label': 0, # 'урлаг соёл'
|
79 |
+
'news': 'Шударга өрсөлдөөн, хэрэглэгчийн төлөө газар 2013 оны дөрөвдүгээр сараас эхлэн Монгол киноны ашиг орлогын мэдээллийг олон нийтэд хүргэж байгаа. Ингэснээр Монголын кино үйлдвэрлэгчид улсад ашиг орлогоо шударгаар төлөх, мөн чанартай уран бүтээлийн тоо өсөх боломж бүрдэж байгаа юм.',
|
80 |
+
}
|
81 |
+
```
|
82 |
+
|
83 |
+
### Data Fields
|
84 |
+
|
85 |
+
- `news`: a complete news article on a specific topic as a string
|
86 |
+
- `label`: the single class of the topic, among these values: "урлаг соёл" (0), "эдийн засаг" (1), "эрүүл мэнд" (2), "хууль" (3), "улс төр" (4), "спорт" (5), "технологи" (6), "боловсрол" (7), "байгал орчин" (8).
|
87 |
+
|
88 |
+
### Data Splits
|
89 |
+
|
90 |
+
The set of complete articles is split into a training and test set.
|
91 |
+
|
92 |
+
## Dataset Creation
|
93 |
+
|
94 |
+
### Curation Rationale
|
95 |
+
|
96 |
+
[Needs More Information]
|
97 |
+
|
98 |
+
### Source Data
|
99 |
+
|
100 |
+
#### Initial Data Collection and Normalization
|
101 |
+
|
102 |
+
[Needs More Information]
|
103 |
+
|
104 |
+
#### Who are the source language producers?
|
105 |
+
|
106 |
+
Eduge.mn which is a combination from shuud.mn, ikon.mn, olloo.mn, news.gogo.mn, montsame.mn, zaluu.com, sonin.mn, medee.mn, bloombergtv.mn.
|
107 |
+
|
108 |
+
### Annotations
|
109 |
+
|
110 |
+
#### Annotation process
|
111 |
+
|
112 |
+
[Needs More Information]
|
113 |
+
|
114 |
+
#### Who are the annotators?
|
115 |
+
|
116 |
+
[Needs More Information]
|
117 |
+
|
118 |
+
### Personal and Sensitive Information
|
119 |
+
|
120 |
+
[Needs More Information]
|
121 |
+
|
122 |
+
## Considerations for Using the Data
|
123 |
+
|
124 |
+
### Social Impact of Dataset
|
125 |
+
|
126 |
+
[Needs More Information]
|
127 |
+
|
128 |
+
### Discussion of Biases
|
129 |
+
|
130 |
+
[Needs More Information]
|
131 |
+
|
132 |
+
### Other Known Limitations
|
133 |
+
|
134 |
+
[Needs More Information]
|
135 |
+
|
136 |
+
## Additional Information
|
137 |
+
|
138 |
+
### Dataset Curators
|
139 |
+
|
140 |
+
[Needs More Information]
|
141 |
+
|
142 |
+
### Licensing Information
|
143 |
+
|
144 |
+
[Needs More Information]
|
145 |
+
|
146 |
+
### Citation Information
|
147 |
+
|
148 |
+
No citation available for this dataset.
|
149 |
+
|
150 |
+
### Contributions
|
151 |
+
|
152 |
+
Thanks to [@enod](https://github.com/enod) for adding this dataset.
|
dataset_infos.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"default": {"description": "Eduge news classification dataset is provided by Bolorsoft LLC. It is used for training the Eduge.mn production news classifier\n75K news articles in 9 categories: \u0443\u0440\u043b\u0430\u0433 \u0441\u043e\u0451\u043b, \u044d\u0434\u0438\u0439\u043d \u0437\u0430\u0441\u0430\u0433, \u044d\u0440\u04af\u04af\u043b \u043c\u044d\u043d\u0434, \u0445\u0443\u0443\u043b\u044c, \u0443\u043b\u0441 \u0442\u04e9\u0440, \u0441\u043f\u043e\u0440\u0442, \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438, \u0431\u043e\u043b\u043e\u0432\u0441\u0440\u043e\u043b and \u0431\u0430\u0439\u0433\u0430\u043b \u043e\u0440\u0447\u0438\u043d\n", "citation": "", "homepage": "http://eduge.mn", "license": "", "features": {"news": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 9, "names": ["\u0443\u0440\u043b\u0430\u0433 \u0441\u043e\u0451\u043b", "\u044d\u0434\u0438\u0439\u043d \u0437\u0430\u0441\u0430\u0433", "\u044d\u0440\u04af\u04af\u043b \u043c\u044d\u043d\u0434", "\u0445\u0443\u0443\u043b\u044c", "\u0443\u043b\u0441 \u0442\u04e9\u0440", "\u0441\u043f\u043e\u0440\u0442", "\u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438", "\u0431\u043e\u043b\u043e\u0432\u0441\u0440\u043e\u043b", "\u0431\u0430\u0439\u0433\u0430\u043b \u043e\u0440\u0447\u0438\u043d"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": [], "builder_name": "eduge", "config_name": "default", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 255275842, "num_examples": 60528, "dataset_name": "eduge"}, "test": {"name": "test", "num_bytes": 64451731, "num_examples": 15133, "dataset_name": "eduge"}}, "download_checksums": {"https://storage.googleapis.com/eduge_dataset/eduge_train.csv": {"num_bytes": 255809357, "checksum": "8ffa7bf797c976c64f7c5e02980f3ff397e915cfdf6227739145ebab24209f54"}, "https://storage.googleapis.com/eduge_dataset/eduge_test.csv": {"num_bytes": 64585710, "checksum": "29468b4ab441c4366cd37abe8ad4ec56cafad29f5a174c4d82949651f4b878d2"}}, "download_size": 320395067, "post_processing_size": null, "dataset_size": 319727573, "size_in_bytes": 640122640}}
|
dummy/0.0.0/dummy_data.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7085847f9e0d8bbb996dcb857814259f4fe0e22c4affffb6def1d274ae9de166
|
3 |
+
size 12869
|
eduge.py
ADDED
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"""Eduge news topic classification dataset."""
|
16 |
+
|
17 |
+
|
18 |
+
import csv
|
19 |
+
|
20 |
+
import datasets
|
21 |
+
from datasets.tasks import TextClassification
|
22 |
+
|
23 |
+
|
24 |
+
_DESCRIPTION = """\
|
25 |
+
Eduge news classification dataset is provided by Bolorsoft LLC. It is used for training the Eduge.mn production news classifier
|
26 |
+
75K news articles in 9 categories: урлаг соёл, эдийн засаг, эрүүл мэнд, хууль, улс төр, спорт, технологи, боловсрол and байгал орчин
|
27 |
+
"""
|
28 |
+
|
29 |
+
_TRAIN_DOWNLOAD_URL = "https://storage.googleapis.com/eduge_dataset/eduge_train.csv"
|
30 |
+
_TEST_DOWNLOAD_URL = "https://storage.googleapis.com/eduge_dataset/eduge_test.csv"
|
31 |
+
|
32 |
+
|
33 |
+
class Eduge(datasets.GeneratorBasedBuilder):
|
34 |
+
"""Eduge news topic classification dataset."""
|
35 |
+
|
36 |
+
def _info(self):
|
37 |
+
return datasets.DatasetInfo(
|
38 |
+
description=_DESCRIPTION,
|
39 |
+
features=datasets.Features(
|
40 |
+
{
|
41 |
+
"news": datasets.Value("string"),
|
42 |
+
"label": datasets.features.ClassLabel(
|
43 |
+
names=[
|
44 |
+
"урлаг соёл",
|
45 |
+
"эдийн засаг",
|
46 |
+
"эрүүл мэнд",
|
47 |
+
"хууль",
|
48 |
+
"улс төр",
|
49 |
+
"спорт",
|
50 |
+
"технологи",
|
51 |
+
"боловсрол",
|
52 |
+
"байгал орчин",
|
53 |
+
]
|
54 |
+
),
|
55 |
+
}
|
56 |
+
),
|
57 |
+
homepage="http://eduge.mn",
|
58 |
+
task_templates=[
|
59 |
+
TextClassification(
|
60 |
+
text_column="news",
|
61 |
+
label_column="label",
|
62 |
+
)
|
63 |
+
],
|
64 |
+
)
|
65 |
+
|
66 |
+
def _split_generators(self, dl_manager):
|
67 |
+
train_path = dl_manager.download_and_extract(_TRAIN_DOWNLOAD_URL)
|
68 |
+
test_path = dl_manager.download_and_extract(_TEST_DOWNLOAD_URL)
|
69 |
+
return [
|
70 |
+
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": train_path}),
|
71 |
+
datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": test_path}),
|
72 |
+
]
|
73 |
+
|
74 |
+
def _generate_examples(self, filepath):
|
75 |
+
"""Generate Eduge news examples."""
|
76 |
+
with open(filepath, encoding="utf-8") as csv_file:
|
77 |
+
csv_reader = csv.reader(
|
78 |
+
csv_file, quotechar='"', delimiter=",", quoting=csv.QUOTE_ALL, skipinitialspace=True
|
79 |
+
)
|
80 |
+
next(csv_reader)
|
81 |
+
for id_, row in enumerate(csv_reader):
|
82 |
+
news, label = row[0], row[1]
|
83 |
+
yield id_, {"news": news, "label": label}
|