config.json: Clarify label mapping

#2
by julien-c HF staff - opened
Files changed (1) hide show
  1. config.json +10 -10
config.json CHANGED
@@ -9,20 +9,20 @@
9
  "hidden_dropout_prob": 0.1,
10
  "hidden_size": 768,
11
  "id2label": {
12
- "0": "LABEL_0",
13
- "1": "LABEL_1",
14
- "2": "LABEL_2",
15
- "3": "LABEL_3",
16
- "4": "LABEL_4"
17
  },
18
  "initializer_range": 0.02,
19
  "intermediate_size": 3072,
20
  "label2id": {
21
- "LABEL_0": 0,
22
- "LABEL_1": 1,
23
- "LABEL_2": 2,
24
- "LABEL_3": 3,
25
- "LABEL_4": 4
26
  },
27
  "layer_norm_eps": 1e-12,
28
  "max_position_embeddings": 512,
 
9
  "hidden_dropout_prob": 0.1,
10
  "hidden_size": 768,
11
  "id2label": {
12
+ "0": "1 star",
13
+ "1": "2 stars",
14
+ "2": "3 stars",
15
+ "3": "4 stars",
16
+ "4": "5 stars"
17
  },
18
  "initializer_range": 0.02,
19
  "intermediate_size": 3072,
20
  "label2id": {
21
+ "1 star": 0,
22
+ "2 stars": 1,
23
+ "3 stars": 2,
24
+ "4 stars": 3,
25
+ "5 stars": 4
26
  },
27
  "layer_norm_eps": 1e-12,
28
  "max_position_embeddings": 512,