mprzymus commited on
Commit
60eed44
1 Parent(s): 4826411

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +62 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: pl
3
+ tags:
4
+ - text-classification
5
+ - sentiment-analysis
6
+ - twitter
7
+ datasets:
8
+ - datasets/tweet_eval
9
+ metrics:
10
+ - f1
11
+ - accuracy
12
+ - precision
13
+ - recall
14
+ widget:
15
+ - text: "Szczęście i Opatrzność mają znaczenie Gratuluje @pzpn_pl"
16
+ example_title: "Example 1"
17
+ - text: "Osoby z Ukrainy zapłacą za życie w centrach pomocy? Sprzeczne prawem UE, niehumanitarne, okrutne."
18
+ example_title: "Example 2"
19
+ - text: "O której kończycie dzisiaj?"
20
+ example_title: "Example 3"
21
+ ---
22
+
23
+
24
+ # Twitter Sentiment PL (fast)
25
+
26
+ Twitter Sentiment PL (base) is a model based on [distiluse](https://huggingface.co/sentence-transformers/distiluse-base-multilingual-cased-v1) for analyzing sentiment 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
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/twitter-sentiment-pl-base")
38
+ nlp("Szczęście i Opatrzność mają znaczenie Gratuluje @pzpn_pl")
39
+ ```
40
+ ```bash
41
+ [{'label': 'positive', 'score': 0.9965680837631226}]
42
+ ```
43
+
44
+ ## Performance
45
+ | Metric | Value |
46
+ | --- | ----------- |
47
+ | f1 macro | 0.570 |
48
+ | precision macro | 0.570 |
49
+ | recall macro | 0.575 |
50
+ | accuracy | 0.582 |
51
+ | samples per second | 225.9 |
52
+
53
+ (The performance was evaluated on RTX 3090 gpu)
54
+
55
+ ## Changelog
56
+ - 2023-07-19: 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 [email protected]