Team Ai
Datasetpublic

agentlans/en-document-topic-classification

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… See the full description on the dataset page: https://huggingface.co/datasets/agentlans/en-document-topic-classification.

sourceHugging Faceodc-byupdated 1mo agoView on Hugging Face
0likes182downloads
Dataset Card

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`, utilizing annotations from `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
ArtsandEntertainmentEntertainmentArts & Entertainment
HealthHealthHealth & Wellness
HomeandGardenHome & HobbiesHome & Gardening
JobsandEducationEducation & JobsEducation & Careers
SportsSports & FitnessSports & Athletics
FoodandDrinkFood & DiningFood & Drink
BusinessandIndustrialFinance & BusinessBusiness & Industry
TravelandTransportationTravel & TourismTravel & Transportation
FinanceFinance & BusinessFinance & Investment
GamesGamesGames & Recreation
PeopleandSocietyReligionReligion & Society
ArtsandEntertainmentArt & DesignArt & Design
AutosandVehiclesTransportationAutos & Vehicles
ComputersandElectronicsElectronics & HardareElectronics & Hardware
BusinessandIndustrialIndustrialIndustrial & Manufacturing
ComputersandElectronicsSoftware DevelopmentSoftware Engineering
Real_EstateHome & HobbiesReal Estate & Property
NewsPoliticsNews & Politics
BeautyandFitnessFashion & BeautyBeauty & Fitness
ComputersandElectronicsSoftwareSoftware Applications
ShoppingFashion & BeautyShopping & Retail
ScienceScience, Math & TechnologyScience & Research
LawandGovernmentCrime & LawLaw & Government
BooksandLiteratureLiteratureBooks & Literature
InternetandTelecomSoftwareInternet & Telecom
HobbiesandLeisureHome & HobbiesHobbies & Leisure
PeopleandSocietySocial LifePeople & Society

</details>

Class Distribution (All Split)

LabelTrainTestTotal
Art & Design18889209920988
Arts & Entertainment46263514051403
Autos & Vehicles18750208320833
Beauty & Fitness15036167116707
Books & Literature11836131513151
Business & Industry28997322232219
Education & Careers34707385638563
Electronics & Hardware17651196119612
Finance & Investment20910232323233
Food & Drink32989366536654
Games & Recreation19046211621162
Health & Wellness40407449044897
Hobbies & Leisure9158101810176
Home & Gardening39439438243821
Industrial & Manufacturing16477183118308
Internet & Telecom10404115611560
Law & Government12108134513453
News & Politics15207169016897
People & Society80298928921
Real Estate & Property15841176017601
Religion & Society18958210721065
Science & Research12203135613559
Shopping & Retail13245147214717
Software Applications14332159315925
Software Engineering15864176317627
Sports & Athletics34525383638361
Travel & Transportation22805253425339
Total56407662676626752

Licensing

Distributed under the Open Data Commons Attribution License (ODC-BY), matching the licensing terms of upstream sources `allenai/c4` and `agentlans/en-document-classification`.