Views
No views yet
bert-base-uncased
on the IMDB movie reviews dataset for sentiment analysis.| Metric | Score |
|---|---|
| Accuracy | ~88% |
| F1 Score | ~0.88 |
1from transformers import pipeline
2
3classifier = pipeline(
4 'sentiment-analysis',
5 model='your-hf-username/bert-imdb-sentiment'
6)
7
8result = classifier("This movie was absolutely amazing!")
9print(result)
10# [{'label': 'POSITIVE', 'score': 0.98}]