Views
No views yet
distilbert-base-uncased for 3-class sentiment classification
(negative / neutral / positive) on the Financial PhraseBank dataset —
short financial news sentences labeled by finance-background annotators.| Metric | Score |
|---|---|
| Accuracy | 0.838 |
| Weighted F1 | 0.84 |
| Class | Precision | Recall | F1 |
|---|---|---|---|
| Negative | 0.79 | 0.81 | 0.80 |
| Neutral | 0.87 | 0.88 | 0.88 |
| Positive | 0.79 | 0.76 | 0.78 |
1from transformers import pipeline
2
3classifier = pipeline("text-classification", model="navu013/finbert-sentiment-distilbert")
4result = classifier("The company reported record profits this quarter.")
5print(result)