Views
No views yet
| Metric | Score |
|---|---|
| Accuracy | 93.2% |
| F1 | 93.2% |
| Precision | 93.8% |
| Recall | 92.7% |
1from transformers import pipeline
2
3classifier = pipeline(
4 "sentiment-analysis",
5 model="TheOnlyAtrix/imdb-sentiment-distilbert"
6)
7
8result = classifier("This film was an absolute masterpiece!")
9print(result)
10# [{'label': 'LABEL_1', 'score': 0.983}] → positive