Views
No views yet
ProsusAI/finbert, further trained on the Financial PhraseBank dataset.negative (0), neutral (1), positive (2)1from transformers import pipeline
2
3clf = pipeline("text-classification", model="rajaadil/finbert-finance-sentiment")
4print(clf("The company reported record profits and raised its dividend."))
5# [{'label': 'positive', 'score': 0.97}]sentences_allagree subset of the Financial PhraseBank dataset — the highest-quality subset, containing only sentences where all human annotators agreed on the label.| Hyperparameter | Value |
|---|---|
| Base model | ProsusAI/finbert |
| Epochs | 4 (best checkpoint kept) |
| Train batch size | 16 |
| Learning rate | 2e-5 |
| Max sequence length | 128 |
| Best model selected on | macro-F1 |
| Metric | Value |
|---|---|
| Accuracy | 0.820 |
| F1 (macro) | 0.811 |