stanfordnlp/imdb
Viewer β’ Updated β’ 100k β’ 263k β’ 383
A fine-tuned DistilBERT model for binary sentiment analysis on movie reviews.
This model was fine-tuned from distilbert-base-uncased on 5,000 IMDb movie
reviews for 3 epochs. It classifies text as POSITIVE or NEGATIVE sentiment.
| Metric | Score |
|---|---|
| Accuracy | 88.4% |
| F1 Score | 0.883 |
| Model | Accuracy |
|---|---|
| TF-IDF + Logistic Regression | 86.4% |
| DistilBERT (this model) | 92.3% |
Product review analysis, feedback classification, general English sentiment tasks.
from transformers import pipeline
classifier = pipeline('text-classification', model='YOUR-USERNAME/distilbert-imdb-sentiment')
result = classifier('This movie was absolutely incredible!')
# Output: [{'label': 'POSITIVE', 'score': 0.997}]