lewtun HF staff commited on
Commit
c105051
1 Parent(s): deee68d

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
@@ -13,22 +13,22 @@
13
  "hidden_dropout_prob": 0.1,
14
  "hidden_size": 768,
15
  "id2label": {
16
- "0": "LABEL_0",
17
- "1": "LABEL_1",
18
- "2": "LABEL_2",
19
- "3": "LABEL_3",
20
- "4": "LABEL_4",
21
- "5": "LABEL_5"
22
  },
23
  "initializer_range": 0.02,
24
  "intermediate_size": 3072,
25
  "label2id": {
26
- "LABEL_0": 0,
27
- "LABEL_1": 1,
28
- "LABEL_2": 2,
29
- "LABEL_3": 3,
30
- "LABEL_4": 4,
31
- "LABEL_5": 5
32
  },
33
  "layer_norm_eps": 1e-05,
34
  "max_position_embeddings": 130,
@@ -44,4 +44,4 @@
44
  "type_vocab_size": 1,
45
  "use_cache": true,
46
  "vocab_size": 64001
47
- }
 
13
  "hidden_dropout_prob": 0.1,
14
  "hidden_size": 768,
15
  "id2label": {
16
+ "0": "sadness",
17
+ "1": "joy",
18
+ "2": "love",
19
+ "3": "anger",
20
+ "4": "fear",
21
+ "5": "surprise"
22
  },
23
  "initializer_range": 0.02,
24
  "intermediate_size": 3072,
25
  "label2id": {
26
+ "sadness": 0,
27
+ "joy": 1,
28
+ "love": 2,
29
+ "anger": 3,
30
+ "fear": 4,
31
+ "surprise": 5
32
  },
33
  "layer_norm_eps": 1e-05,
34
  "max_position_embeddings": 130,
 
44
  "type_vocab_size": 1,
45
  "use_cache": true,
46
  "vocab_size": 64001
47
+ }