Downloads · 30 days
12
30% of all-time downloads
Kroalist/financial-sentiment-bert-base
financial-sentiment-bert-base is a text classification model from Kroalist. 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 on Financial PhraseBank for three-way sentiment.
Downloads · 30 days
12
30% of all-time downloads
All-time downloads
40
Public
Repo size
876 MB
Likes
0
Public
Click a slice to open those files.
.bin438 MB · 100%
From the Hugging Face model README
Fine-tuned on Financial PhraseBank for three-way sentiment.
| Item | Value |
|---|---|
| Base model | bert-base-uncased |
| Dataset | Financial PhraseBank |
| Labels | positive (0) · negative (1) · neutral (2) |
| Epochs | 4 |
| Hardware | CPU-only training |
Validation Accuracy (best): 81.32%
Test Performance:
precision recall f1-score support
positive 0.71 0.75 0.73 204
negative 0.67 0.81 0.74 91
neutral 0.88 0.82 0.85 432
accuracy 0.80 727
macro avg 0.75 0.79 0.77 727
weighted avg 0.81 0.80 0.80 727
Training completed in 17m 9s. Logs are available in training_logs.csv and training curve in training_metrics.png.
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tok = AutoTokenizer.from_pretrained("Kroalist/financial-sentiment-bert-base")
model = AutoModelForSequenceClassification.from_pretrained("Kroalist/financial-sentiment-bert-base")
Last updated: 2025-04-23