Datasets:
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-classification
|
| 5 |
+
tags:
|
| 6 |
+
- text-classification
|
| 7 |
+
- sentiment-analysis
|
| 8 |
+
- amazon
|
| 9 |
+
- reviews
|
| 10 |
+
- nlp
|
| 11 |
+
- data-centric-ai
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# Amazon Reviews Dataset
|
| 15 |
+
|
| 16 |
+
This dataset contains Amazon product reviews with binary sentiment labels (positive, negative) for text classification tasks.
|
| 17 |
+
|
| 18 |
+
## Dataset Description
|
| 19 |
+
|
| 20 |
+
The dataset includes:
|
| 21 |
+
- `train.csv` - Training set, 5000 samples
|
| 22 |
+
- `test.csv` - Test set, 1000 samples
|
| 23 |
+
|
| 24 |
+
## Usage
|
| 25 |
+
|
| 26 |
+
```python
|
| 27 |
+
import pandas as pd
|
| 28 |
+
from huggingface_hub import hf_hub_download
|
| 29 |
+
|
| 30 |
+
# Download the training set
|
| 31 |
+
file_path = hf_hub_download(
|
| 32 |
+
repo_id="Cleanlab/amazon-reviews",
|
| 33 |
+
filename="train.csv",
|
| 34 |
+
repo_type="dataset"
|
| 35 |
+
)
|
| 36 |
+
df = pd.read_csv(file_path)
|
| 37 |
+
print(df.head())
|
| 38 |
+
```
|
| 39 |
+
|
| 40 |
+
## License
|
| 41 |
+
|
| 42 |
+
MIT License
|