takala/financial_phrasebank
Updated • 7.45k • 259
FinStream financial sentiment classifier fine-tuned on Financial PhraseBank.
Part of the FinStream Active Learning Pipeline.
| Property | Value |
|---|---|
| Base model | distilroberta-base |
| Task | 3-class financial sentiment classification |
| Dataset | Financial PhraseBank (~4,845 sentences) |
| Labels | negative (Bearish) · neutral · positive (Bullish) |
| Accuracy | 0.8443298969072165 |
| F1 macro | 0.8457725376192002 |
| Precision | 0.8510783764659424 |
| Recall | 0.8443298969072165 |
| Training hardware | Kaggle T4 GPU · FP16 · 5 epochs |
from transformers import pipeline
classifier = pipeline(
"text-classification",
model="hitenvk22/finstream-sentiment",
tokenizer="hitenvk22/finstream-sentiment",
)
result = classifier("The company reported record earnings, beating all analyst estimates.")
print(result)
# [{'label': 'positive', 'score': 0.96}]
| Integer | Label | Financial meaning |
|---|---|---|
| 0 | negative | Bearish — price likely to fall |
| 1 | neutral | No directional signal |
| 2 | positive | Bullish — price likely to rise |
DataCollatorWithPadding