mprzymus commited on
Commit
edc1965
·
1 Parent(s): 619e443

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +59 -0
README.md ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: pl
3
+ tags:
4
+ - text-classification
5
+ - twitter
6
+ datasets:
7
+ - datasets/tweet_eval
8
+ metrics:
9
+ - f1
10
+ - accuracy
11
+ - precision
12
+ - recall
13
+ widget:
14
+ - text: "Nigdy przegrana nie sprawiła mi takiej radości. Szczęście i Opatrzność mają znaczenie Gratuluje @pzpn_pl"
15
+ example_title: "Example 1"
16
+ - text: "Osoby z Ukrainy zapłacą za życie w centrach pomocy? Sprzeczne prawem UE, niehumanitarne, okrutne."
17
+ example_title: "Example 2"
18
+ ---
19
+
20
+
21
+ # Twitter emotion PL (fast)
22
+
23
+ Twitter emotion PL (fast) is a model fastd on [herbert-fast](https://huggingface.co/allegro/herbert-fast-cased) for analyzing emotion of Polish twitter posts. It was trained on the translated version of [TweetEval](https://www.researchgate.net/publication/347233661_TweetEval_Unified_Benchmark_and_Comparative_Evaluation_for_Tweet_Classification) by Barbieri et al., 2020 for 10 epochs on single RTX3090 gpu.
24
+
25
+ The model will give you a three labels: positive, negative and neutral.
26
+
27
+ ## How to use
28
+
29
+ You can use this model directly with a pipeline for text classification:
30
+
31
+ ```python
32
+ from transformers import pipeline
33
+
34
+ nlp = pipeline("text-classification", model="bardsai/twitter-emotion-pl-fast")
35
+ nlp("Nigdy przegrana nie sprawiła mi takiej radości. Szczęście i Opatrzność mają znaczenie Gratuluje @pzpn_pl")
36
+ ```
37
+ ```bash
38
+ [{'label': 'joy', 'score': 0.5163766145706177}]
39
+ ```
40
+
41
+ ## Performance
42
+ | Metric | Value |
43
+ | --- | ----------- |
44
+ | f1 macro | 0.756 |
45
+ | precision macro | 0.767 |
46
+ | recall macro | 0.750 |
47
+ | accuracy | 0.789 |
48
+ | samples per second | 131.6 |
49
+
50
+ (The performance was evaluated on RTX 3090 gpu)
51
+
52
+ ## Changelog
53
+ - 2023-07-19: Initial release
54
+
55
+ ## About bards.ai
56
+
57
+ 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/)
58
+
59
+ Let us know if you use our model :). Also, if you need any help, feel free to contact us at [email protected]