Datasets:
Tasks:
Text Classification
Modalities:
Text
Formats:
parquet
Sub-tasks:
sentiment-classification
Languages:
English
Size:
10K - 100K
License:
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,33 +1,86 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
- name: test
|
| 20 |
-
num_bytes: 13216701.6
|
| 21 |
-
num_examples: 10000
|
| 22 |
-
download_size: 42367081
|
| 23 |
-
dataset_size: 66083508.0
|
| 24 |
-
configs:
|
| 25 |
-
- config_name: default
|
| 26 |
-
data_files:
|
| 27 |
-
- split: train
|
| 28 |
-
path: data/train-*
|
| 29 |
-
- split: validation
|
| 30 |
-
path: data/validation-*
|
| 31 |
-
- split: test
|
| 32 |
-
path: data/test-*
|
| 33 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
license: other
|
| 5 |
+
pretty_name: IMDb Sentiment (35k/5k/10k)
|
| 6 |
+
size_categories: 10K<n<100K
|
| 7 |
+
task_categories:
|
| 8 |
+
- text-classification
|
| 9 |
+
task_ids:
|
| 10 |
+
- sentiment-classification
|
| 11 |
+
annotations_creators:
|
| 12 |
+
- expert-generated
|
| 13 |
+
language_creators:
|
| 14 |
+
- expert-generated
|
| 15 |
+
multilinguality:
|
| 16 |
+
- monolingual
|
| 17 |
+
source_datasets:
|
| 18 |
+
- original
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
---
|
| 20 |
+
|
| 21 |
+
# IMDb Sentiment Classification
|
| 22 |
+
|
| 23 |
+
A curated version of the [Large Movie Review Dataset](https://ai.stanford.edu/~amaas/data/sentiment/) with custom train/validation/test splits optimized for model training and evaluation.
|
| 24 |
+
|
| 25 |
+
## Dataset Summary
|
| 26 |
+
|
| 27 |
+
This dataset contains **50,000 labeled movie reviews** from IMDb, each labeled as **positive (1)** or **negative (0)**. The data originates from the Stanford AI Lab's Large Movie Review Dataset, re-split into 35k/5k/10k for better validation during training.
|
| 28 |
+
|
| 29 |
+
## Splits
|
| 30 |
+
|
| 31 |
+
| Split | Samples | Positive | Negative |
|
| 32 |
+
|-------|---------|----------|----------|
|
| 33 |
+
| **train** | 35,000 | 17,500 | 17,500 |
|
| 34 |
+
| **validation** | 5,000 | 2,500 | 2,500 |
|
| 35 |
+
| **test** | 10,000 | 5,000 | 5,000 |
|
| 36 |
+
| **Total** | **50,000** | **25,000** | **25,000** |
|
| 37 |
+
|
| 38 |
+
The dataset is balanced — each split has roughly equal positive and negative reviews.
|
| 39 |
+
|
| 40 |
+
## Data Fields
|
| 41 |
+
|
| 42 |
+
- **`text`** (`string`): The movie review text (English).
|
| 43 |
+
- **`label`** (`int`): Sentiment label — `0` for negative, `1` for positive.
|
| 44 |
+
|
| 45 |
+
## Usage
|
| 46 |
+
|
| 47 |
+
```python
|
| 48 |
+
from datasets import load_dataset
|
| 49 |
+
|
| 50 |
+
ds = load_dataset("Mustafaege/imdb-sentiment")
|
| 51 |
+
|
| 52 |
+
# Access splits
|
| 53 |
+
train_ds = ds["train"] # 35,000 samples
|
| 54 |
+
val_ds = ds["validation"] # 5,000 samples
|
| 55 |
+
test_ds = ds["test"] # 10,000 samples
|
| 56 |
+
|
| 57 |
+
# Example
|
| 58 |
+
print(train_ds[0])
|
| 59 |
+
# {'text': 'This movie was absolutely fantastic...', 'label': 1}
|
| 60 |
+
```
|
| 61 |
+
|
| 62 |
+
## Source
|
| 63 |
+
|
| 64 |
+
- **Original dataset**: [Stanford Large Movie Review Dataset](https://ai.stanford.edu/~amaas/data/sentiment/)
|
| 65 |
+
- **Original HF mirror**: [stanfordnlp/imdb](https://huggingface.co/datasets/stanfordnlp/imdb)
|
| 66 |
+
- **Paper**: Maas et al., "Learning Word Vectors for Sentiment Analysis", ACL 2011
|
| 67 |
+
|
| 68 |
+
## Citation
|
| 69 |
+
|
| 70 |
+
```bibtex
|
| 71 |
+
@InProceedings{maas-EtAl:2011:ACL-HLT2011,
|
| 72 |
+
author = {Maas, Andrew L. and Daly, Raymond E. and Pham, Peter T. and Huang, Dan and Ng, Andrew Y. and Potts, Christopher},
|
| 73 |
+
title = {Learning Word Vectors for Sentiment Analysis},
|
| 74 |
+
booktitle = {Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies},
|
| 75 |
+
month = {June},
|
| 76 |
+
year = {2011},
|
| 77 |
+
address = {Portland, Oregon, USA},
|
| 78 |
+
publisher = {Association for Computational Linguistics},
|
| 79 |
+
pages = {142--150},
|
| 80 |
+
url = {http://www.aclweb.org/anthology/P11-1015}
|
| 81 |
+
}
|
| 82 |
+
```
|
| 83 |
+
|
| 84 |
+
## License
|
| 85 |
+
|
| 86 |
+
The IMDb dataset is provided for academic research use. See the [original dataset page](https://ai.stanford.edu/~amaas/data/sentiment/) for licensing details.
|