Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language: fr
|
3 |
+
tags:
|
4 |
+
- text-classification
|
5 |
+
- financial-sentiment-analysis
|
6 |
+
- sentiment-analysis
|
7 |
+
datasets:
|
8 |
+
- datasets/financial_phrasebank
|
9 |
+
metrics:
|
10 |
+
- f1
|
11 |
+
- accuracy
|
12 |
+
- precision
|
13 |
+
- recall
|
14 |
+
widget:
|
15 |
+
- text: "Le chiffre d'affaires net a augmenté de 30 % pour atteindre 36 millions d'euros."
|
16 |
+
example_title: "Example 1"
|
17 |
+
- text: "Coup d'envoi du vendredi fou. Liste des promotions en magasin."
|
18 |
+
example_title: "Example 2"
|
19 |
+
- text: "Les actions de CDPROJEKT ont enregistré la plus forte baisse parmi les entreprises cotées au WSE."
|
20 |
+
example_title: "Example 3"
|
21 |
+
---
|
22 |
+
|
23 |
+
|
24 |
+
# Finance Sentiment FR (base)
|
25 |
+
|
26 |
+
Finance Sentiment FR (base) is a model based on [camembert-base](https://huggingface.co/camembert-base) for analyzing sentiment of French financial news. It was trained on the translated version of [Financial PhraseBank](https://www.researchgate.net/publication/251231107_Good_Debt_or_Bad_Debt_Detecting_Semantic_Orientations_in_Economic_Texts) by Malo et al. (20014) for 10 epochs on single RTX3090 gpu.
|
27 |
+
|
28 |
+
The model will give you a three labels: positive, negative and neutral.
|
29 |
+
|
30 |
+
## How to use
|
31 |
+
|
32 |
+
You can use this model directly with a pipeline for sentiment-analysis:
|
33 |
+
|
34 |
+
```python
|
35 |
+
from transformers import pipeline
|
36 |
+
|
37 |
+
nlp = pipeline("sentiment-analysis", model="bardsai/finance-sentiment-fr-base")
|
38 |
+
nlp("Le chiffre d'affaires net a augmenté de 30 % pour atteindre 36 millions d'euros.")
|
39 |
+
```
|
40 |
+
```bash
|
41 |
+
[{'label': 'positive', 'score': 0.9987998807375955}]
|
42 |
+
```
|
43 |
+
|
44 |
+
## Performance
|
45 |
+
| Metric | Value |
|
46 |
+
| --- | ----------- |
|
47 |
+
| f1 macro | 0.963 |
|
48 |
+
| precision macro | 0.959 |
|
49 |
+
| recall macro | 0.967 |
|
50 |
+
| accuracy | 0.971 |
|
51 |
+
| samples per second | 140.8 |
|
52 |
+
|
53 |
+
(The performance was evaluated on RTX 3090 gpu)
|
54 |
+
|
55 |
+
## Changelog
|
56 |
+
- 2023-09-18: Initial release
|
57 |
+
|
58 |
+
## About bards.ai
|
59 |
+
|
60 |
+
At bards.ai, we focus on providing machine learning expertise and skills to our partners, particularly in the areas of nlp, machine vision and time series analysis. Our team is located in Wroclaw, Poland. Please visit our website for more information: [bards.ai](https://bards.ai/)
|
61 |
+
|
62 |
+
Let us know if you use our model :). Also, if you need any help, feel free to contact us at info@bards.ai
|