Views
No views yet
ProsusAI/finbert on a custom dataset of ~500 financial news headlines written in Bahasa Indonesia. The task is 3-class sentiment classification: positive, neutral, and negative.transformers library with the following modifications:positive – bullish or growth-related headlinesneutral – factual or event-based reportingnegative – bearish or risk-indicative headlines| Title | Label |
|---|---|
| IHSG diperkirakan rebound minggu ini | positive |
| BI umumkan suku bunga tetap | neutral |
| Rupiah melemah terhadap dolar AS | negative |
intanm/indonesian-financial-sentiment-analysis benchmark dataset using accuracy, F1 score, precision, and recall metrics.michaelmanurung/finbert-indonesia (Indonesian financial sentiment model)ProsusAI/finbert (English financial sentiment model)ayameRushia/bert-base-indonesian-1.5G-sentiment-analysis-smsa (general Indonesian sentiment model)| Model | Accuracy | F1 Score | Precision | Recall |
|---|---|---|---|---|
| michaelmanurung/finbert-indonesia | 0.299 | 0.276 | 0.347 | 0.299 |
| ProsusAI/finbert | 0.285 | 0.134 | 0.560 | 0.285 |
| ayameRushia/bert-base-indonesian-1.5G-sentiment-analysis-smsa | 0.334 | 0.238 | 0.669 | 0.334 |
Metrics are reported using weighted averaging.
1from transformers import pipeline
2
3classifier = pipeline(
4 "text-classification",
5 model="michaelmanurung/finbert-indonesia",
6 tokenizer="michaelmanurung/finbert-indonesia"
7)
8
9result = classifier("IHSG turun tipis karena aksi ambil untung investor.")
10print(result)
11# Output: [{'label': 'LABEL_2', 'score': 0.89}] -> e.g. 'positive'