zeroshot/twitter-financial-news-sentiment
Viewer • Updated • 11.9k • 4.11k • 179
Fine-tuned DistilBERT model for financial news sentiment classification.
This model classifies financial news headlines into three sentiment categories:
| Metric | Score |
|---|---|
| Accuracy | 84.43% |
| Macro F1 | 0.80 |
| Bearish F1 | 0.74 |
| Bullish F1 | 0.77 |
| Neutral F1 | 0.90 |
from transformers import pipeline
classifier = pipeline(
"text-classification",
model="Riddhi2952/financial-sentiment-distilbert"
)
result = classifier("$AAPL beats earnings estimates revenue up 12%")
print(result)
# [{'label': 'Bullish', 'score': 0.99}]