Task Categories: text-classification
Languages: en
Multilinguality: monolingual
Size Categories: 100K<n<1M
Licenses: unknown
Language Creators: found
Annotations Creators: found
Source Datasets: original

Dataset Card for "ag_news"

Dataset Summary

AG is a collection of more than 1 million news articles. News articles have been gathered from more than 2000 news sources by ComeToMyHead in more than 1 year of activity. ComeToMyHead is an academic news search engine which has been running since July, 2004. The dataset is provided by the academic comunity for research purposes in data mining (clustering, classification, etc), information retrieval (ranking, search, etc), xml, data compression, data streaming, and any other non-commercial activity. For more information, please refer to the link .

The AG's news topic classification dataset is constructed by Xiang Zhang ( from the dataset above. It is used as a text classification benchmark in the following paper: Xiang Zhang, Junbo Zhao, Yann LeCun. Character-level Convolutional Networks for Text Classification. Advances in Neural Information Processing Systems 28 (NIPS 2015).

Supported Tasks and Leaderboards

More Information Needed


More Information Needed

Dataset Structure

We show detailed information for up to 5 configurations of the dataset.

Data Instances


  • Size of downloaded dataset files: 29.88 MB
  • Size of the generated dataset: 30.23 MB
  • Total amount of disk used: 60.10 MB

An example of 'train' looks as follows.

    "label": 3,
    "text": "New iPad released Just like every other September, this one is no different. Apple is planning to release a bigger, heavier, fatter iPad that..."

Data Fields

The data fields are the same among all splits.


  • text: a string feature.
  • label: a classification label, with possible values including World (0), Sports (1), Business (2), Sci/Tech (3).

Data Splits

name train test
default 120000 7600

Dataset Creation

Curation Rationale

More Information Needed

Source Data

Initial Data Collection and Normalization

More Information Needed

Who are the source language producers?

More Information Needed


Annotation process

More Information Needed

Who are the annotators?

More Information Needed

Personal and Sensitive Information

More Information Needed

Considerations for Using the Data

Social Impact of Dataset

More Information Needed

Discussion of Biases

More Information Needed

Other Known Limitations

More Information Needed

Additional Information

Dataset Curators

More Information Needed

Licensing Information

More Information Needed

Citation Information

  title={Character-level Convolutional Networks for Text Classification},
  author={Xiang Zhang and Junbo Jake Zhao and Yann LeCun},


Thanks to @jxmorris12, @thomwolf, @lhoestq, @lewtun for adding this dataset.

Models trained or fine-tuned on ag_news