File size: 2,147 Bytes
d6fecc5
 
 
 
 
 
 
 
 
 
 
 
 
 
6535a69
d6fecc5
 
 
 
 
 
 
 
345d34e
d6fecc5
345d34e
d6fecc5
 
 
 
 
 
 
 
 
 
345d34e
ae78ff9
d6fecc5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27b466a
345d34e
27b466a
 
d6fecc5
 
 
 
 
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
---
language: pl
tags:
  - text-classification
  - financial-sentiment-analysis
  - sentiment-analysis
datasets:
  - datasets/financial_phrasebank
metrics:
  - f1
  - accuracy
  - precision
  - recall
widget:
  - text: "Sprzedaż netto wzrosła o 30% do 36 mln EUR."
    example_title: "Example 1"
  - text: "Rusza Black Friday. Lista promocji w sklepach."
    example_title: "Example 2"
  - text: "Akcje CDPROJEKT zanotowały największy spadek wśród spółek notowanych na GPW."
    example_title: "Example 3"
---


# Finance Sentiment PL (fast)

Finance Sentiment PL (fast) is a [distiluse](https://huggingface.co/sentence-transformers/distiluse-base-multilingual-cased-v1)-based model for analyzing sentiment of Polish 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. 

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-pl-fast")
nlp("Sprzedaż netto wzrosła o 30% do 36 mln EUR.")
```
```bash
[{'label': 'positive', 'score': 0.9999998807907104}]
```

## Performance
| Metric | Value |
| --- | ----------- |
| f1 macro | 0.933 |
| precision macro | 0.950 |
| recall macro | 0.918 |
| accuracy | 0.944 |
| samples per second | 268.1 |

(The performance was evaluated on RTX 3090 gpu)

## Changelog
- 2022-12-01: Rename the model to finance-sentiment-pl-base
- 2022-11-15: Initial release

## 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