stanfordnlp/imdb
Viewer โข Updated โข 100k โข 180k โข 370
This model is a fine-tuned version of bert-base-uncased
on the IMDB movie reviews dataset for sentiment analysis.
| Metric | Score |
|---|---|
| Accuracy | ~88% |
| F1 Score | ~0.88 |
from transformers import pipeline
classifier = pipeline(
'sentiment-analysis',
model='your-hf-username/bert-imdb-sentiment'
)
result = classifier("This movie was absolutely amazing!")
print(result)
# [{'label': 'POSITIVE', 'score': 0.98}]