stanfordnlp/imdb
Viewer • Updated • 100k • 189k • 370
A fine-tuned DistilBERT model for binary sentiment analysis on movie reviews.
Fine-tuned from distilbert-base-uncased on 5,000 IMDb movie reviews for 3 epochs.
Classifies text as POSITIVE or NEGATIVE sentiment.
| Metric | Score |
|---|---|
| Accuracy | 88.6% |
| F1 Score | 0.886 |
| Model | Accuracy |
|---|---|
| TF-IDF + Logistic Regression | 89.4% |
| DistilBERT (this model) | 88.6% |
from transformers import pipeline
classifier = pipeline('text-classification', model='Aitazaz123/distilbert-imdb-sentiment')
result = classifier('This movie was absolutely incredible!')
# Output: [{'label': 'POSITIVE', 'score': 0.997}]