lewtun HF staff commited on
Commit
8735b97
1 Parent(s): cb6f713

Fix label mappings

Browse files

This PR fixes the label mappings to match the dataset.

Files changed (1) hide show
  1. config.json +1 -41
config.json CHANGED
@@ -1,41 +1 @@
1
- {
2
- "_name_or_path": "distilbert-base-uncased",
3
- "activation": "gelu",
4
- "architectures": [
5
- "DistilBertForSequenceClassification"
6
- ],
7
- "attention_dropout": 0.1,
8
- "dim": 768,
9
- "dropout": 0.1,
10
- "hidden_dim": 3072,
11
- "id2label": {
12
- "0": "LABEL_0",
13
- "1": "LABEL_1",
14
- "2": "LABEL_2",
15
- "3": "LABEL_3",
16
- "4": "LABEL_4",
17
- "5": "LABEL_5"
18
- },
19
- "initializer_range": 0.02,
20
- "label2id": {
21
- "LABEL_0": 0,
22
- "LABEL_1": 1,
23
- "LABEL_2": 2,
24
- "LABEL_3": 3,
25
- "LABEL_4": 4,
26
- "LABEL_5": 5
27
- },
28
- "max_position_embeddings": 512,
29
- "model_type": "distilbert",
30
- "n_heads": 12,
31
- "n_layers": 6,
32
- "pad_token_id": 0,
33
- "problem_type": "single_label_classification",
34
- "qa_dropout": 0.1,
35
- "seq_classif_dropout": 0.2,
36
- "sinusoidal_pos_embds": false,
37
- "tie_weights_": true,
38
- "torch_dtype": "float32",
39
- "transformers_version": "4.11.3",
40
- "vocab_size": 30522
41
- }
 
1
+ {"_name_or_path": "distilbert-base-uncased", "activation": "gelu", "architectures": ["DistilBertForSequenceClassification"], "attention_dropout": 0.1, "dim": 768, "dropout": 0.1, "hidden_dim": 3072, "id2label": {"0": "sadness", "1": "joy", "2": "love", "3": "anger", "4": "fear", "5": "surprise"}, "initializer_range": 0.02, "label2id": {"sadness": "0", "joy": "1", "love": "2", "anger": "3", "fear": "4", "surprise": "5"}, "max_position_embeddings": 512, "model_type": "distilbert", "n_heads": 12, "n_layers": 6, "pad_token_id": 0, "problem_type": "single_label_classification", "qa_dropout": 0.1, "seq_classif_dropout": 0.2, "sinusoidal_pos_embds": false, "tie_weights_": true, "torch_dtype": "float32", "transformers_version": "4.11.3", "vocab_size": 30522}