khailai commited on
Commit
b26525c
·
1 Parent(s): c1596d8

saved labels and id mappings to configs

Browse files
Files changed (2) hide show
  1. config.json +15 -15
  2. tf_model.h5 +1 -1
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "cardiffnlp/twitter-roberta-base-offensive",
3
  "architectures": [
4
  "RobertaForSequenceClassification"
5
  ],
@@ -12,24 +12,24 @@
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
- "6": "LABEL_6"
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
- "LABEL_6": 6
33
  },
34
  "layer_norm_eps": 1e-05,
35
  "max_position_embeddings": 514,
 
1
  {
2
+ "_name_or_path": "khailai/roberta-offensive-classifier",
3
  "architectures": [
4
  "RobertaForSequenceClassification"
5
  ],
 
12
  "hidden_dropout_prob": 0.1,
13
  "hidden_size": 768,
14
  "id2label": {
15
+ "0": "disability",
16
+ "1": "gender/sexual orientation",
17
+ "2": "none",
18
+ "3": "other",
19
+ "4": "race/nationality",
20
+ "5": "religion",
21
+ "6": "socioeconomic"
22
  },
23
  "initializer_range": 0.02,
24
  "intermediate_size": 3072,
25
  "label2id": {
26
+ "disability": 0,
27
+ "gender/sexual orientation": 1,
28
+ "none": 2,
29
+ "other": 3,
30
+ "race/nationality": 4,
31
+ "religion": 5,
32
+ "socioeconomic": 6
33
  },
34
  "layer_norm_eps": 1e-05,
35
  "max_position_embeddings": 514,
tf_model.h5 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b130d60fd1a933ad81b77ec720b386e173f08b824d1a512a9e34918f3ba9c9a2
3
  size 498893696
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:952531bf5b265620bba823127a618b9aee00640e2fa0bf0af9de55c148ae6857
3
  size 498893696