Kenpache commited on
Commit
a6d8bbf
verified
1 Parent(s): 60b9e63

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +87 -0
README.md ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ - zh
6
+ - ja
7
+ - de
8
+ - fr
9
+ - es
10
+ tags:
11
+ - finance
12
+ - sentiment-analysis
13
+ - multilingual
14
+ - xlm-roberta
15
+ datasets:
16
+ - Kenpache/multilingual-financial-sentiment
17
+ metrics:
18
+ - accuracy
19
+ - f1
20
+ pipeline_tag: text-classification
21
+ model-index:
22
+ - name: FLAME
23
+ results:
24
+ - task:
25
+ type: text-classification
26
+ name: Financial Sentiment Analysis
27
+ metrics:
28
+ - name: Accuracy
29
+ type: accuracy
30
+ value: 0.8103
31
+ - name: F1 (weighted)
32
+ type: f1
33
+ value: 0.8102
34
+ ---
35
+
36
+ # FLAME - Financial Language Analysis for Multilingual Economics
37
+
38
+ **One model. Six languages. Real financial sentiment.**
39
+
40
+ FLAME classifies financial text as **Negative**, **Neutral**, or **Positive** across English, Chinese, Japanese, German, French, and Spanish.
41
+
42
+ Built on XLM-RoBERTa-base, domain-adapted on 35K+ financial texts, fine-tuned on ~39K multilingual financial news samples.
43
+
44
+ ## Quick Start
45
+
46
+ ```python
47
+ from transformers import pipeline
48
+
49
+ classifier = pipeline("text-classification", model="Kenpache/flame")
50
+
51
+ classifier("Revenue surged 40% year-over-year, beating analyst expectations.")
52
+ # [{'label': 'positive', 'score': 0.96}]
53
+
54
+ classifier("La empresa report贸 p茅rdidas significativas este trimestre.")
55
+ # [{'label': 'negative', 'score': 0.93}]
56
+ ```
57
+
58
+ ## Results
59
+
60
+ | Metric | Score |
61
+ |---|---|
62
+ | Accuracy | **0.8103** |
63
+ | F1 (weighted) | **0.8102** |
64
+ | Precision | **0.8111** |
65
+ | Recall | **0.8103** |
66
+
67
+ | Class | Precision | Recall | F1 |
68
+ |---|---|---|---|
69
+ | Negative | 0.78 | 0.83 | 0.81 |
70
+ | Neutral | 0.83 | 0.79 | 0.81 |
71
+ | Positive | 0.80 | 0.82 | 0.81 |
72
+
73
+ ## Languages
74
+
75
+ EN | ZH | JA | DE | FR | ES
76
+
77
+ ## Training
78
+
79
+ XLM-RoBERTa-base + Task-Adaptive Pre-Training (MLM) + fine-tuning with label smoothing, cosine LR schedule, and SWA checkpoint averaging.
80
+
81
+ ## Dataset
82
+
83
+ [Kenpache/multilingual-financial-sentiment](https://huggingface.co/datasets/Kenpache/multilingual-financial-sentiment) -- ~39K samples from CNBC, Yahoo Finance, Reuters, Nikkei, Sina Finance, and 80+ other financial news sources.
84
+
85
+ ## License
86
+
87
+ Apache 2.0