minhleduc commited on
Commit
79ecdbc
·
verified ·
1 Parent(s): 2a7c5ec

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +123 -0
README.md CHANGED
@@ -29,3 +29,126 @@ configs:
29
  - split: test
30
  path: data/test-*
31
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  - split: test
30
  path: data/test-*
31
  ---
32
+
33
+
34
+
35
+ # Multilingual Text Classification Dataset
36
+
37
+ This dataset is designed for **multilingual text classification** tasks.
38
+ It includes labeled text samples across **8 languages**, making it ideal for training and evaluating models on **cross-lingual transfer**, **language identification**, and **multilingual understanding**.
39
+
40
+
41
+ ## Dataset Overview
42
+
43
+ | Split | # Examples | Size (bytes) |
44
+ | ---------- | ---------- | ------------- |
45
+ | Train | 18,657 | 2,651,248 |
46
+ | Validation | 2,665 | 378,709 |
47
+ | Test | 5,331 | 757,560 |
48
+ | **Total** | **26,653** | **3,787,517** |
49
+
50
+ **Total Download Size:** 2.6 MB
51
+ **Total Dataset Size:** 3.8 MB
52
+ **Task Type:** Text Classification
53
+
54
+
55
+ ## Data Fields
56
+
57
+ | Field | Type | Description |
58
+ | ------- | -------- | -------------------------------------------------- |
59
+ | `text` | `string` | The input text sample. |
60
+ | `lang` | `string` | The ISO 639-3 language code of the text. |
61
+ | `label` | `int64` | The integer label representing the language class. |
62
+
63
+
64
+ ## Language Labels
65
+
66
+ | Language | Code | Label ID |
67
+ | -------- | ----- | -------- |
68
+ | German | `deu` | 0 |
69
+ | Chinese | `zho` | 1 |
70
+ | Amharic | `amh` | 2 |
71
+ | Arabic | `arb` | 3 |
72
+ | Hausa | `hau` | 4 |
73
+ | Urdu | `urd` | 5 |
74
+ | Spanish | `spa` | 6 |
75
+ | English | `eng` | 7 |
76
+
77
+ This mapping is stored internally in the dataset and can be used to decode model predictions or remap outputs.
78
+
79
+
80
+ ## Intended Uses
81
+
82
+ * Multilingual language classification
83
+ * Cross-lingual and zero-shot evaluation
84
+ * Benchmarking multilingual embeddings (e.g., mBERT, XLM-R, LaBSE)
85
+ * Studying language similarity and confusion patterns
86
+
87
+
88
+ ## Usage Example
89
+
90
+ You can easily load the dataset using the Hugging Face `datasets` library:
91
+
92
+ ```python
93
+ from datasets import load_dataset
94
+
95
+ dataset = load_dataset("8Opt/multilingual-classification-0001")
96
+
97
+ example = dataset["train"][0]
98
+ print(example)
99
+ ```
100
+
101
+ Output:
102
+
103
+ ```python
104
+ {
105
+ "text": "Das ist ein Beispielsatz.",
106
+ "lang": "deu",
107
+ "label": 0
108
+ }
109
+ ```
110
+
111
+ Label mapping:
112
+
113
+ ```python
114
+ id2label = {
115
+ 0: "deu",
116
+ 1: "zho",
117
+ 2: "amh",
118
+ 3: "arb",
119
+ 4: "hau",
120
+ 5: "urd",
121
+ 6: "spa",
122
+ 7: "eng"
123
+ }
124
+ ```
125
+
126
+
127
+ ## Configurations
128
+
129
+ **Configuration name:** `default`
130
+
131
+ Each split is stored under `data/`:
132
+
133
+ ```
134
+ data/
135
+ ├── train-*
136
+ ├── validation-*
137
+ └── test-*
138
+ ```
139
+
140
+ ---
141
+
142
+ ## Citation
143
+
144
+ If you use this dataset in your work, please cite it as:
145
+
146
+ ```
147
+ @dataset{8Opt,
148
+ title={Multilingual Text Classification Dataset},
149
+ author={Your Name},
150
+ year={2025},
151
+ url={https://huggingface.co/datasets/8Opt/multilingual-classification-0001}
152
+ }
153
+ ```
154
+