Downloads · 30 days
3
7% of all-time downloads
0xImmanuel/imdb-sentiment-distilbert
imdb-sentiment-distilbert is a text classification model from 0xImmanuel. Use it when you need a label for a piece of text.
A binary sentiment classifier fine-tuned on movie reviews. Returns POSITIVE or NEGATIVE with a confidence score.
Downloads · 30 days
3
7% of all-time downloads
All-time downloads
46
Public
Parameters
67M
268 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors268 MB · 100%
From the Hugging Face model README
A binary sentiment classifier fine-tuned on movie reviews. Returns POSITIVE or NEGATIVE with a confidence score.
from transformers import pipeline
classifier = pipeline("sentiment-analysis", model="OxImmanuel/imdb-sentiment-distilbert")
classifier("I didn't expect much, but it was excellent.")
88% accuracy on a 1,000-example held-out test set.
Trained on movie reviews, so accuracy drops on other kinds of text — tweets, support tickets, product reviews all have different language patterns than what this saw.
Inputs are truncated at 256 tokens. Since reviewers often state their verdict at the end, longer reviews may lose the deciding signal.
Trained on a 5,000-example subset rather than the full 25,000, so this underperforms what the same setup would achieve with more data.
English only. Binary output only — no neutral class.