Downloads · 30 days
17
32% of all-time downloads
anabdd/finsentiment-deberta-v3-base
finsentiment-deberta-v3-base is a text classification model from anabdd. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
Fine-tuned microsoft/deberta-v3-base for three-class financial sentiment classification (negative / neutral / positive) on a combined corpus of:
Downloads · 30 days
17
32% of all-time downloads
All-time downloads
53
Public
Parameters
184M
740 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors738 MB · 99%
From the Hugging Face model README
Fine-tuned microsoft/deberta-v3-base for three-class financial sentiment classification
(negative / neutral / positive) on a combined corpus of:
nickmuchi/financial-classification mirror)zeroshot/twitter-financial-news-sentiment)Test macro-F1: 0.876 (accuracy 0.892, ECE 0.034).
| Metric | Fine-tuned | FinBERT (zero-shot) |
|---|---|---|
| macro-F1 | 0.876 | 0.731 |
| accuracy | 0.892 | 0.765 |
| F1 (negative) | 0.858 | 0.661 |
| F1 (neutral) | 0.914 | 0.819 |
| F1 (positive) | 0.856 | 0.712 |
| Expected Calibration Error | 0.034 | 0.075 |
Evaluation was run on a stratified 10% test split of the combined corpus
(seed 42), with ProsusAI/finbert as a zero-shot domain-pretrained baseline.
from transformers import pipeline
clf = pipeline("text-classification", model="anabdd/finsentiment-deberta-v3-base", top_k=None)
clf("Apple beat earnings expectations on iPhone strength.")
# → [{'label': 'positive', 'score': 0.97}, ...]
Trained with Trainer (HuggingFace transformers >= 4.46) using:
balanced weighting on the
training split)See the project repository for the full training script
(src/train.py) and the analysis notebook.
Designed for short-form financial English text (headlines, tweets, brief analyst notes). It has not been trained for:
Labels follow the nickmuchi/financial-classification mirror's convention,
which is itself derived from the original PhraseBank annotation scheme.