File size: 3,147 Bytes
07c28c2
7043aa6
 
 
 
 
07c28c2
 
 
 
7043aa6
07c28c2
7043aa6
07c28c2
 
 
 
 
 
 
 
 
 
 
 
7043aa6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
07c28c2
 
 
 
 
99f7d6d
07c28c2
 
 
 
 
 
 
 
 
 
51b3d03
07c28c2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7043aa6
 
 
 
 
 
07c28c2
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
---
language:
  - de
license: mit
library_name: transformers
pipeline_tag: text-classification
tags:
  - text-classification
  - financial-sentiment-analysis
  - sentiment-analysis
base_model: google-bert/bert-base-german-cased
datasets:
  - financial_phrasebank
metrics:
  - f1
  - accuracy
  - precision
  - recall
widget:
  - text: "Der Nettoumsatz stieg um 30 % auf 36 Mio. EUR."
    example_title: "Example 1"
  - text: "Der schwarze Freitag beginnt. Liste der Werbeaktionen in den Geschäften."
    example_title: "Example 2"
  - text: "Die CDPROJEKT-Aktie verzeichnete den stärksten Rückgang unter den an der WSE notierten Unternehmen."
    example_title: "Example 3"
model-index:
  - name: finance-sentiment-de-base
    results:
      - task:
          type: text-classification
          name: Financial Sentiment Analysis
        dataset:
          name: Financial PhraseBank (translated to German)
          type: financial_phrasebank
        metrics:
          - type: f1
            value: 0.955
            name: F1 (macro)
          - type: precision
            value: 0.960
            name: Precision (macro)
          - type: recall
            value: 0.950
            name: Recall (macro)
          - type: accuracy
            value: 0.966
            name: Accuracy
---


# Finance Sentiment DE (base)

Finance Sentiment DE (base) is a model based on [bert-base-german-cased](https://huggingface.co/bert-base-german-cased) for analyzing sentiment of German 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. (2014) for 10 epochs on single RTX3090 gpu. 

The model will give you a three labels: positive, negative and neutral.

## How to use

You can use this model directly with a pipeline for sentiment-analysis:

```python
from transformers import pipeline

nlp = pipeline("sentiment-analysis", model="bardsai/finance-sentiment-de-base")
nlp("Der Nettoumsatz stieg um 30 % auf 36 Mio. EUR.")
```
```bash
[{'label': 'positive', 'score': 0.9987998807375955}]
```

## Performance
| Metric | Value |
| --- | ----------- |
| f1 macro | 0.955 |
| precision macro | 0.960 |
| recall macro | 0.950 |
| accuracy | 0.966 |
| samples per second | 135.2 |

(The performance was evaluated on RTX 3090 gpu)

## Changelog
- 2023-09-18: Initial release

## License

This model is released under the **[MIT License](https://opensource.org/licenses/MIT)**, inherited from the base model [bert-base-german-cased](https://huggingface.co/bert-base-german-cased) (MIT).

Attribution: bert-base-german-cased — deepset; Finance Sentiment DE (base) — bards.ai.

## About bards.ai

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/)

Let us know if you use our model :). Also, if you need any help, feel free to contact us at info@bards.ai