File size: 7,243 Bytes
29789ce
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fb709ff
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29789ce
 
 
e8599db
29789ce
 
 
 
 
 
 
 
 
 
 
 
 
 
fb709ff
29789ce
 
 
 
 
e8599db
 
29789ce
 
 
 
 
fb709ff
29789ce
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fb709ff
29789ce
 
fb709ff
29789ce
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
---
configs:
- config_name: default
  data_files:
  - split: train
    path: main.jsonl.zst
- config_name: nvidia_domain
  data_files:
  - split: train
    path: nvidia_domain/train.jsonl.zst
  - split: validation
    path: nvidia_domain/validation.jsonl.zst
  - split: test
    path: nvidia_domain/test.jsonl.zst
- config_name: doc_type_v1_primary
  data_files:
  - split: train
    path: doc_type_v1_primary/train.jsonl.zst
  - split: validation
    path: doc_type_v1_primary/validation.jsonl.zst
  - split: test
    path: doc_type_v1_primary/test.jsonl.zst
- config_name: doc_type_v2_primary
  data_files:
  - split: train
    path: doc_type_v2_primary/train.jsonl.zst
  - split: validation
    path: doc_type_v2_primary/validation.jsonl.zst
  - split: test
    path: doc_type_v2_primary/test.jsonl.zst
language_creators:
- machine-translated
- curated
task_categories:
- text-classification
tags:
- cross-lingual-classification
- domain-adaptation
- multilingual
language:
- afr
- als
- amh
- arb
- ars
- ary
- arz
- asm
- azj
- bel
- ben
- bew
- bos
- bul
- cat
- ces
- ckb
- cmn
- cym
- dan
- deu
- div
- ekk
- ell
- eng
- epo
- eus
- fao
- fas
- fil
- fin
- fra
- fry
- gle
- glg
- guj
- hau
- heb
- hin
- hrv
- hun
- hye
- ind
- isl
- ita
- jpn
- kan
- kat
- kaz
- khk
- khm
- kin
- kir
- kmr
- kor
- lao
- lat
- lit
- ltz
- lvs
- mal
- mar
- mkd
- mlt
- mya
- nld
- nno
- nob
- npi
- nrm
- ory
- pan
- pbt
- plt
- pol
- por
- ron
- rus
- sin
- slk
- slv
- snd
- som
- spa
- srp
- swe
- swh
- tam
- tel
- tgk
- tha
- tur
- ukr
- urd
- uzn
- vie
- xho
- yue
- zsm
---
# Multilingual Document Classification Dataset

This dataset contains **100,000 text passages** across **100 non-English language-script pairs** sourced from the [`agentlans/HuggingFaceFW-finetranslations-100-languages-sample`](https://huggingface.co/datasets/agentlans/HuggingFaceFW-finetranslations-100-languages-sample) collection. 

Each original text passage is paired with its English translation and has been programmatically annotated with domain, writing genre, and educational classifications to facilitate cross-lingual classification and domain adaptation tasks.

## Dataset Overview

- **Size:** 100,000 original text passages + 100,000 English translations.
- **Languages:** 100 non-English languages (original text) paired with English translations.
- **Primary Use Case:** Multilingual document classification, cross-lingual domain adaptation, and translation-based text evaluation.
- **Splits:** All subsets are split into **80% train**, **10% validation**, and **10% test** sets. The splits are stratified by the target labels to ensure identical class distributions across splits.

### Subset Config Structure

The dataset contains subset configurations tailored for specific training objectives. 
* In the **`main` config**, each original text is stored alongside its English translation within a single row.
* In **subset configs** (for example, configurations filtered or categorized by specific schema labels), the original texts and their English translations are stored as distinct, individual rows to allow direct training on the target language or translation.

## Annotation & Classification Details

To generate granular metadata for domain, genre, and cognitive level, two primary text classifiers were applied to the **English translations**:

1. **[`nvidia/domain-classifier`](https://huggingface.co/nvidia/domain-classifier)** – Extracts high-level topical domains.
2. **[`EssentialAI/eai-distill-0.5b`](https://huggingface.co/EssentialAI/eai-distill-0.5b)** – Extracts genre, cognitive depth, and educational level. See the [EAI Taxonomy Schema](https://github.com/Essential-AI/eai-taxonomy#dataset-schema-documentation) for detailed definitions.

### Key Classification Fields

| Column Name | Source Model | Description / Purpose |
| :--- | :--- | :--- |
| `nvidia_domain` | NVIDIA Domain Classifier | General topical categorization (for example, News, Food & Drink). |
| `doc_type_v1_primary` | EAI Distill 0.5B | High-level document genre classification (V1). |
| `doc_type_v2_primary` | EAI Distill 0.5B | Refined, granular document type classification (V2). |

The columns `nvidia_domain`, `doc_type_v1_primary`, and `doc_type_v2_primary` are used as the target labels for creating subset configs.

## Dataset Schema & Examples

### 1. `main` Configuration Example

The `main` configuration contains both the original and translated text, as well as the complete suite of metadata extracted by the classifiers.

```json
{
  "id": "<urn:uuid:8f0799fb-7964-44e1-af9d-6565a1f85937>",
  "translated": "In Gujarat too, there was opposition to the atrocities against farmers in Madhya Pradesh. Anger has spread in Gujarat over the incident in Madhya Pradesh. A protest demonstration was held by the Pradesh Congress in Ahmedabad...",
  "original": "મધ્યપ્રદેશમાં ખેડૂતો પર અત્યાચારનો ગુજરાતમાં પણ વિરોધ થયો છે. ગુજરાતમાં પણ મધ્યપ્રદેશની ઘટનાને લઈ નારાજગી પ્રસરી છે...",
  "language": "guj_Gujr",
  "nvidia_domain": "News",
  "bloom_cognitive_primary": "Understand",
  "bloom_cognitive_secondary": "Evaluate",
  "bloom_knowledge_primary": "Factual",
  "bloom_knowledge_secondary": "Conceptual",
  "doc_type_v1_primary": "News/Editorial",
  "doc_type_v2_primary": "News Article",
  "doc_type_v2_secondary": "Knowledge Article",
  "educational_level_primary": "General",
  "educational_level_secondary": "High School",
  "extraction_artifacts_primary": "No Artifacts",
  "fdc_primary": "320.954",
  "fdc_secondary": "338.954",
  "missing_content_primary": "No Missing Content",
  "reasoning_depth_primary": "No Reasoning",
  "reasoning_depth_secondary": "Basic",
  "technical_correctness_primary": "N/A",
  "technical_correctness_secondary": "Highly Correct"
}
```

### 2. Subset Configuration Example

The subset configurations are stripped down to the target `text`, its `language` identifier, and the specific classification `label` for the subset.

```json
{
  "text": "Oh sweet potato; kuinka ihana oletkaan!\nJa vielä kaunis väriltäsi...",
  "language": "fin_Latn",
  "label": "Food_and_Drink"
}
```

## Limitations

Users should keep the following limitations in mind when utilizing this dataset:

* **Source Translation Quality:** Since the source texts are derived from `HuggingFaceFW-finetranslations`, any artifacts, vocabulary choices, or grammatical inaccuracies in the underlying translations will carry over.
* **Language Distribution:** The dataset contains an uniform number of samples across languages. As a result, high-resource languages (for example, Mandarin Chinese) have the same number of rows as lower-resource languages (for example, Assamese).
* **Class Imbalance:** Certain topical domains and document types are heavily over-represented compared to others. For instance, there are far more promotional news articles than niche categories like culinary recipes.

## Licence

This dataset is released under the **Open Data Commons Attribution License (ODC-BY)**, matching the terms of the source datasets.