File size: 7,625 Bytes
d846aae
89e6c93
 
d846aae
89e6c93
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d846aae
89e6c93
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
234
235
236
237
238
239
240
241
242
243
---
language:
- en
license: odc-by
tags:
- document-classification
- text-classification
- web-pages
configs:
- config_name: All
  default: true
  data_files:
  - path:
    - All/train.jsonl.zst
    split: train
  - path:
    - All/test.jsonl.zst
    split: test
- config_name: ArtDesign
  data_files:
  - path:
    - ArtDesign.jsonl.zst
    split: train
- config_name: ArtsEntertainment
  data_files:
  - path:
    - ArtsEntertainment.jsonl.zst
    split: train
- config_name: AutosVehicles
  data_files:
  - path:
    - AutosVehicles.jsonl.zst
    split: train
- config_name: BeautyFitness
  data_files:
  - path:
    - BeautyFitness.jsonl.zst
    split: train
- config_name: BooksLiterature
  data_files:
  - path:
    - BooksLiterature.jsonl.zst
    split: train
- config_name: BusinessIndustry
  data_files:
  - path:
    - BusinessIndustry.jsonl.zst
    split: train
- config_name: EducationCareers
  data_files:
  - path:
    - EducationCareers.jsonl.zst
    split: train
- config_name: ElectronicsHardware
  data_files:
  - path:
    - ElectronicsHardware.jsonl.zst
    split: train
- config_name: FinanceInvestment
  data_files:
  - path:
    - FinanceInvestment.jsonl.zst
    split: train
- config_name: FoodDrink
  data_files:
  - path:
    - FoodDrink.jsonl.zst
    split: train
- config_name: GamesRecreation
  data_files:
  - path:
    - GamesRecreation.jsonl.zst
    split: train
- config_name: HealthWellness
  data_files:
  - path:
    - HealthWellness.jsonl.zst
    split: train
- config_name: HobbiesLeisure
  data_files:
  - path:
    - HobbiesLeisure.jsonl.zst
    split: train
- config_name: HomeGardening
  data_files:
  - path:
    - HomeGardening.jsonl.zst
    split: train
- config_name: IndustrialManufacturing
  data_files:
  - path:
    - IndustrialManufacturing.jsonl.zst
    split: train
- config_name: InternetTelecom
  data_files:
  - path:
    - InternetTelecom.jsonl.zst
    split: train
- config_name: LawGovernment
  data_files:
  - path:
    - LawGovernment.jsonl.zst
    split: train
- config_name: NewsPolitics
  data_files:
  - path:
    - NewsPolitics.jsonl.zst
    split: train
- config_name: PeopleSociety
  data_files:
  - path:
    - PeopleSociety.jsonl.zst
    split: train
- config_name: RealEstateProperty
  data_files:
  - path:
    - RealEstateProperty.jsonl.zst
    split: train
- config_name: ReligionSociety
  data_files:
  - path:
    - ReligionSociety.jsonl.zst
    split: train
- config_name: ScienceResearch
  data_files:
  - path:
    - ScienceResearch.jsonl.zst
    split: train
- config_name: ShoppingRetail
  data_files:
  - path:
    - ShoppingRetail.jsonl.zst
    split: train
- config_name: SoftwareApplications
  data_files:
  - path:
    - SoftwareApplications.jsonl.zst
    split: train
- config_name: SoftwareEngineering
  data_files:
  - path:
    - SoftwareEngineering.jsonl.zst
    split: train
- config_name: SportsAthletics
  data_files:
  - path:
    - SportsAthletics.jsonl.zst
    split: train
- config_name: TravelTransportation
  data_files:
  - path:
    - TravelTransportation.jsonl.zst
    split: train
---
# English Document Topic Classification Dataset

English-language web pages classified by document topic, designed to train robust text classifiers and provide ready-to-use data for specific web topics.

* **Purpose:** Train generalized document classifiers or extract clean, single-topic corpora for specific downstream tasks.
* **Configurations:** Each document topic is available in its own dedicated dataset configuration (e.g., `HomeGardening`, `GamesRecreation`).
* **Splits:** The `All` configuration contains every document topic combined, featuring a 10% stratified test split.

## Curation & Filtering Pipeline

This dataset is derived from a subset of the first 1 million rows of [`allenai/c4`](https://huggingface.co/datasets/allenai/c4), utilizing annotations from [`agentlans/en-document-classification`](https://huggingface.co/datasets/agentlans/en-document-classification).

Samples are included only when the `nvidia_domain` field matches `weborganizer_topic` according to the following mapping.

These 27 categories cover 62% of the samples from the original dataset.

<details>
<summary>Click here for the table</summary>

| `nvidia_domain` | `weborganizer_topic` | Label |
|---|---|---|
| Arts_and_Entertainment | Entertainment | Arts & Entertainment |
| Health | Health | Health & Wellness |
| Home_and_Garden | Home & Hobbies | Home & Gardening |
| Jobs_and_Education | Education & Jobs | Education & Careers |
| Sports | Sports & Fitness | Sports & Athletics |
| Food_and_Drink | Food & Dining | Food & Drink |
| Business_and_Industrial | Finance & Business | Business & Industry |
| Travel_and_Transportation | Travel & Tourism | Travel & Transportation |
| Finance | Finance & Business | Finance & Investment |
| Games | Games | Games & Recreation |
| People_and_Society | Religion | Religion & Society |
| Arts_and_Entertainment | Art & Design | Art & Design |
| Autos_and_Vehicles | Transportation | Autos & Vehicles |
| Computers_and_Electronics | Electronics & Hardare | Electronics & Hardware |
| Business_and_Industrial | Industrial | Industrial & Manufacturing |
| Computers_and_Electronics | Software Development | Software Engineering |
| Real_Estate | Home & Hobbies | Real Estate & Property |
| News | Politics | News & Politics |
| Beauty_and_Fitness | Fashion & Beauty | Beauty & Fitness |
| Computers_and_Electronics | Software | Software Applications |
| Shopping | Fashion & Beauty | Shopping & Retail |
| Science | Science, Math & Technology | Science & Research |
| Law_and_Government | Crime & Law | Law & Government |
| Books_and_Literature | Literature | Books & Literature |
| Internet_and_Telecom | Software | Internet & Telecom |
| Hobbies_and_Leisure | Home & Hobbies | Hobbies & Leisure |
| People_and_Society | Social Life | People & Society |

</details>

## Class Distribution (`All` Split)

| Label | Train | Test | Total |
|-------|-------|------|-------|
| Art & Design | 18889 | 2099 | 20988 |
| Arts & Entertainment | 46263 | 5140 | 51403 |
| Autos & Vehicles | 18750 | 2083 | 20833 |
| Beauty & Fitness | 15036 | 1671 | 16707 |
| Books & Literature | 11836 | 1315 | 13151 |
| Business & Industry | 28997 | 3222 | 32219 |
| Education & Careers | 34707 | 3856 | 38563 |
| Electronics & Hardware | 17651 | 1961 | 19612 |
| Finance & Investment | 20910 | 2323 | 23233 |
| Food & Drink | 32989 | 3665 | 36654 |
| Games & Recreation | 19046 | 2116 | 21162 |
| Health & Wellness | 40407 | 4490 | 44897 |
| Hobbies & Leisure | 9158 | 1018 | 10176 |
| Home & Gardening | 39439 | 4382 | 43821 |
| Industrial & Manufacturing | 16477 | 1831 | 18308 |
| Internet & Telecom | 10404 | 1156 | 11560 |
| Law & Government | 12108 | 1345 | 13453 |
| News & Politics | 15207 | 1690 | 16897 |
| People & Society | 8029 | 892 | 8921 |
| Real Estate & Property | 15841 | 1760 | 17601 |
| Religion & Society | 18958 | 2107 | 21065 |
| Science & Research | 12203 | 1356 | 13559 |
| Shopping & Retail | 13245 | 1472 | 14717 |
| Software Applications | 14332 | 1593 | 15925 |
| Software Engineering | 15864 | 1763 | 17627 |
| Sports & Athletics | 34525 | 3836 | 38361 |
| Travel & Transportation | 22805 | 2534 | 25339 |
| **Total** | 564076 | 62676 | 626752 |

## Licensing

Distributed under the Open Data Commons Attribution License (ODC-BY), matching the licensing terms of upstream sources [`allenai/c4`](https://huggingface.co/datasets/allenai/c4) and [`agentlans/en-document-classification`](https://www.google.com/search?q=https://huggingface.co/datasets/agentlans/en-document-classification).