zeroshot/twitter-financial-news-sentiment
Viewer • Updated • 11.9k • 6.38k • 174
CamemBERT fine-tuned for financial sentiment classification.
This model classifies financial text into 3 categories:
Fine-tuned from camembert-base on 12,816 financial sentences.
| Epoch | Accuracy | F1 Score |
|---|---|---|
| 1 | 70.67% | 0.641 |
| 2 | 76.83% | 0.756 |
| 3 | 78.00% | 0.772 |
| Metric | Score |
|---|---|
| Accuracy | 78.08% |
| F1 Score | 0.7759 |
| Class | Precision | Recall | F1 |
|---|---|---|---|
| Bearish | 0.60 | 0.52 | 0.55 |
| Bullish | 0.69 | 0.64 | 0.66 |
| Neutral | 0.84 | 0.89 | 0.87 |
from transformers import pipeline
classifier = pipeline(
"text-classification",
model="Walid692/finsentinel-camembert"
)
result = classifier("La hausse des taux d'interet inquiete les investisseurs institutionnels.")
print(result)
Ahmed Walid BOUANZOUL — AI Engineer GitHub: https://github.com/AhmedWalidbou/FinSentinel