Downloads · 30 days
10
7% of all-time downloads
navu013/finbert-sentiment-distilbert
finbert-sentiment-distilbert is a text classification model from navu013. Use it when you need a label for a piece of text. The card lists the license as apache-2.0.
Fine-tuned 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.
Downloads · 30 days
10
7% of all-time downloads
All-time downloads
152
Public
Parameters
67M
804 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors268 MB · 100%
From the Hugging Face model README
Fine-tuned 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.
Classifies the sentiment of short financial/business news sentences, e.g. company earnings reports, market commentary, or corporate announcements. Not intended for general-purpose sentiment analysis outside a finance context.
| 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 |
The model performs well on sentences with explicit sentiment language, but struggles on sentences requiring implicit domain reasoning — e.g. "the company will deliver X units to a buyer" implies a sale (positive) without using any positive-sounding words. It also has difficulty with sentences containing mixed or competing signals (e.g. two market indices moving in opposite directions within one sentence). The most common error pattern is misclassifying positive or negative sentences as neutral, likely influenced by class imbalance in the training data (neutral is the majority class).
from transformers import pipeline
classifier = pipeline("text-classification", model="navu013/finbert-sentiment-distilbert")
result = classifier("The company reported record profits this quarter.")
print(result)
This is a learning/portfolio project — trained on a public academic dataset, not intended for production financial decision-making.