Datasets:

Modalities:
Text
Formats:
parquet
agnews / README
JoyCountMost's picture
Create README
efa8be3 verified
raw
history blame contribute delete
916 Bytes
---
pretty_name: "AG News"
license: "unknown"
language:
- en
tags:
- news
- classification
- text
task_categories:
- text-classification
---
# AG News
This repository hosts a copy of the **AG News** topic classification dataset,
a standard benchmark for English news text classification.
The dataset contains news article titles/descriptions paired with one of four topic labels.
## Contents
Typical splits:
- `train`
- `test`
A typical entry contains:
```json
{
"text": "...",
"label": 0
}
```
## Usage
```python
from datasets import load_dataset
ds = load_dataset("fancyzhx/ag_news")
```
## Source
This dataset is taken from the Hugging Face dataset repository:
https://huggingface.co/datasets/fancyzhx/ag_news
## License
The Hugging Face dataset card lists the license as **unknown**.
Please review the dataset’s original sources and terms of use before redistribution or commercial use.