chennab28/movie-review-sentiment
π¬ Movie Review Sentiment (Mini) A tiny hand-built dataset of one-sentence movie reviews labeled with their sentiment, used to demonstrate the full Hugging Face workflow: Dataset β Model β Space What's inside Split Rows Classes train 168 positive, negative, neutral test 42 positive, negative, neutral Each example has two fields: text β an English sentence reviewing a movie label β one of positive, negative, neutral Why thisβ¦ See the full description on the dataset page: https://huggingface.co/datasets/chennab28/movie-review-sentiment.
π¬ Movie Review Sentiment (Mini)
A tiny hand-built dataset of one-sentence movie reviews labeled with their sentiment, used to demonstrate the full Hugging Face workflow:
Dataset β Model β Space
What's inside
Each example has two fields:
textβ an English sentence reviewing a movielabelβ one ofpositive,negative,neutral
Why this dataset exists
This dataset is intentionally small and clean so a tiny model (bert-tiny, ~2 encoder layers) can fine-tune on it quickly, even on a CPU. It powers the movie-review-sentiment classifier and its companion Gradio Space.
How it was built
data/build_dataset.py combines:
- Hand-written seed reviews for each class (realistic sentences),
- Template-generated variations that swap adjectives / phrases to give the model more signal,
- A deterministic 80/20 train/test split (
random.seed(42)).
You can rebuild it yourself:
python data/build_dataset.pyLoad it
from datasets import load_dataset
ds = load_dataset("chennab28/movie-review-sentiment")
print(ds["train"][0]) # {'text': ..., 'label': 'positive'}Feedback
Try the live demo in the accompanying Space or improve the dataset and open a pull request!
