gilleti commited on
Commit
31d778f
·
1 Parent(s): 75a82b1

added id2label schema

Browse files
Files changed (1) hide show
  1. README.md +13 -1
README.md CHANGED
@@ -11,7 +11,7 @@ language:
11
 
12
  # gilleti/emotional-classification
13
 
14
- This is a [SetFit model](https://github.com/huggingface/setfit) that can be used for classification of emotions in Swedish text. The model supports multi-label classification. The model has been trained using an efficient few-shot learning technique that involves:
15
 
16
  1. Fine-tuning a [Sentence Transformer](https://www.sbert.net) with contrastive learning.
17
  2. Training a classification head with features from the fine-tuned Sentence Transformer.
@@ -21,6 +21,18 @@ Accuracy on a number of experiments can be found in the figure below.
21
  !<img src="./emotional_accuracy.svg">
22
  ![plot](./emotional_accuracy.svg)
23
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  ## The data
25
  The model has been trained on news headlines that have been manually annotated at KBLab by the PhD student Nora Hansson Bittár.
26
 
 
11
 
12
  # gilleti/emotional-classification
13
 
14
+ This is a [SetFit model](https://github.com/huggingface/setfit) that can be used for classification of emotions in Swedish text. The model supports seven basic emotions, listed below. The model has been trained using an efficient few-shot learning technique that involves:
15
 
16
  1. Fine-tuning a [Sentence Transformer](https://www.sbert.net) with contrastive learning.
17
  2. Training a classification head with features from the fine-tuned Sentence Transformer.
 
21
  !<img src="./emotional_accuracy.svg">
22
  ![plot](./emotional_accuracy.svg)
23
 
24
+ Id to label schema is as follows:
25
+
26
+ ```
27
+ 0 : absence of emotion
28
+ 1 : happiness (glädje)
29
+ 2 : love/empathy (kärlek/empati)
30
+ 3: fear/anxiety (oro/rädsla)
31
+ 4: sadness/disappointment (sorg/besvikelse)
32
+ 5: anger/hate (ilska/hat)
33
+ 6: hope/anticipation (hopp/förväntan)
34
+ ```
35
+
36
  ## The data
37
  The model has been trained on news headlines that have been manually annotated at KBLab by the PhD student Nora Hansson Bittár.
38