lewtun HF staff commited on
Commit
55a1d49
1 Parent(s): 59b25fd

Align label mapping with emotion dataset

Browse files

Hi there, your model is using a default label mapping. Accept this PR to align the label mapping with the `emotion` dataset this model was trained on. This will enable your model to be evaluated by [Hugging Face's automatic model evaluator](https://huggingface.co/spaces/autoevaluate/model-evaluator?dataset=emotion)

Files changed (1) hide show
  1. config.json +13 -13
config.json CHANGED
@@ -10,22 +10,22 @@
10
  "hidden_dropout_prob": 0.1,
11
  "hidden_size": 768,
12
  "id2label": {
13
- "0": "LABEL_0",
14
- "1": "LABEL_1",
15
- "2": "LABEL_2",
16
- "3": "LABEL_3",
17
- "4": "LABEL_4",
18
- "5": "LABEL_5"
19
  },
20
  "initializer_range": 0.02,
21
  "intermediate_size": 3072,
22
  "label2id": {
23
- "LABEL_0": 0,
24
- "LABEL_1": 1,
25
- "LABEL_2": 2,
26
- "LABEL_3": 3,
27
- "LABEL_4": 4,
28
- "LABEL_5": 5
29
  },
30
  "layer_norm_eps": 1e-12,
31
  "max_position_embeddings": 512,
@@ -45,4 +45,4 @@
45
  "type_vocab_size": 2,
46
  "use_cache": true,
47
  "vocab_size": 119547
48
- }
 
10
  "hidden_dropout_prob": 0.1,
11
  "hidden_size": 768,
12
  "id2label": {
13
+ "0": "sadness",
14
+ "1": "joy",
15
+ "2": "love",
16
+ "3": "anger",
17
+ "4": "fear",
18
+ "5": "surprise"
19
  },
20
  "initializer_range": 0.02,
21
  "intermediate_size": 3072,
22
  "label2id": {
23
+ "sadness": 0,
24
+ "joy": 1,
25
+ "love": 2,
26
+ "anger": 3,
27
+ "fear": 4,
28
+ "surprise": 5
29
  },
30
  "layer_norm_eps": 1e-12,
31
  "max_position_embeddings": 512,
 
45
  "type_vocab_size": 2,
46
  "use_cache": true,
47
  "vocab_size": 119547
48
+ }