Create README
Browse files
README
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pretty_name: "AG News"
|
| 3 |
+
license: "unknown"
|
| 4 |
+
language:
|
| 5 |
+
- en
|
| 6 |
+
tags:
|
| 7 |
+
- news
|
| 8 |
+
- classification
|
| 9 |
+
- text
|
| 10 |
+
task_categories:
|
| 11 |
+
- text-classification
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# AG News
|
| 15 |
+
|
| 16 |
+
This repository hosts a copy of the **AG News** topic classification dataset,
|
| 17 |
+
a standard benchmark for English news text classification.
|
| 18 |
+
|
| 19 |
+
The dataset contains news article titles/descriptions paired with one of four topic labels.
|
| 20 |
+
|
| 21 |
+
## Contents
|
| 22 |
+
Typical splits:
|
| 23 |
+
|
| 24 |
+
- `train`
|
| 25 |
+
- `test`
|
| 26 |
+
|
| 27 |
+
A typical entry contains:
|
| 28 |
+
```json
|
| 29 |
+
{
|
| 30 |
+
"text": "...",
|
| 31 |
+
"label": 0
|
| 32 |
+
}
|
| 33 |
+
```
|
| 34 |
+
|
| 35 |
+
## Usage
|
| 36 |
+
```python
|
| 37 |
+
from datasets import load_dataset
|
| 38 |
+
ds = load_dataset("fancyzhx/ag_news")
|
| 39 |
+
```
|
| 40 |
+
|
| 41 |
+
## Source
|
| 42 |
+
This dataset is taken from the Hugging Face dataset repository:
|
| 43 |
+
https://huggingface.co/datasets/fancyzhx/ag_news
|
| 44 |
+
|
| 45 |
+
## License
|
| 46 |
+
The Hugging Face dataset card lists the license as **unknown**.
|
| 47 |
+
Please review the dataset’s original sources and terms of use before redistribution or commercial use.
|