CoolFace
Modelpublic

chennab28/movie-review-sentiment-classifier

sourceHugging Faceapache-2.0updated 6d agoView on Hugging Face
0likes30downloads
Model Card

๐Ÿฟ Movie Review Sentiment Classifier

A tiny BERT model (google/bert_uncased_L-4_H-256_A-4, ~10M params) fine-tuned for 3-way movie review sentiment classification:

positive / negative / neutral

Trained on the companion dataset `chennab28/movie-review-sentiment` in a couple of minutes on CPU.

Quick inference

python
from transformers import pipeline

pipe = pipeline("text-classification", model="chennab28/movie-review-sentiment-classifier")

print(pipe("A breathtaking masterpiece with stunning cinematography."))
# [{'label': 'positive', 'score': 0.99}]

Metrics

TaskAcc (test)
Sentiment (3 classes)97.6%

Why so small?

This is deliberately a minimal end-to-end example of the Hugging Face workflow โ€” Dataset โ†’ Model โ†’ Space. Despite having only ~10M parameters, the model reaches 97.6% accuracy on the held-out test split.

Training details

ConfigValue
base modelgoogle/bert_uncased_L-4_H-256_A-4
epochs30
batch size16
lr5e-5
max seq len128
data168 train / 42 test rows

Reproduce with train/train.py --epochs 30 in this repo.

Try it live

๐Ÿ‘‰ Gradio demo Space