lewtun HF staff commited on
Commit
d20e382
1 Parent(s): 7455df9

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