| | --- |
| | pretty_name: "AG News" |
| | license: "unknown" |
| | language: |
| | - en |
| | tags: |
| | - news |
| | - classification |
| | - text |
| | task_categories: |
| | - text-classification |
| | --- |
| | |
| | |
| |
|
| | 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. |
| |
|
| | |
| | Typical splits: |
| |
|
| | - `train` |
| | - `test` |
| |
|
| | A typical entry contains: |
| | ```json |
| | { |
| | "text": "...", |
| | "label": 0 |
| | } |
| | ``` |
| |
|
| | |
| | ```python |
| | from datasets import load_dataset |
| | ds = load_dataset("fancyzhx/ag_news") |
| | ``` |
| |
|
| | |
| | This dataset is taken from the Hugging Face dataset repository: |
| | https://huggingface.co/datasets/fancyzhx/ag_news |
| |
|
| | |
| | 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. |
| |
|