joshdevins commited on
Commit
31f821f
1 Parent(s): f74ffe5

Changes labels

Browse files

Labels are now standard conll 2003 label types and should work with grouping and ignoring default labels now.

Files changed (1) hide show
  1. config.json +18 -18
config.json CHANGED
@@ -10,27 +10,27 @@
10
  "finetuning_task": "ner",
11
  "hidden_dim": 3072,
12
  "id2label": {
13
- "0": "LABEL_0",
14
- "1": "LABEL_1",
15
- "2": "LABEL_2",
16
- "3": "LABEL_3",
17
- "4": "LABEL_4",
18
- "5": "LABEL_5",
19
- "6": "LABEL_6",
20
- "7": "LABEL_7",
21
- "8": "LABEL_8"
22
  },
23
  "initializer_range": 0.02,
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
- "LABEL_6": 6,
32
- "LABEL_7": 7,
33
- "LABEL_8": 8
34
  },
35
  "max_position_embeddings": 512,
36
  "model_type": "distilbert",
 
10
  "finetuning_task": "ner",
11
  "hidden_dim": 3072,
12
  "id2label": {
13
+ "0": "O",
14
+ "1": "B-MISC",
15
+ "2": "I-MISC",
16
+ "3": "B-PER",
17
+ "4": "I-PER",
18
+ "5": "B-ORG",
19
+ "6": "I-ORG",
20
+ "7": "B-LOC",
21
+ "8": "I-LOC"
22
  },
23
  "initializer_range": 0.02,
24
  "label2id": {
25
+ "B-LOC": 7,
26
+ "B-MISC": 1,
27
+ "B-ORG": 5,
28
+ "B-PER": 3,
29
+ "I-LOC": 8,
30
+ "I-MISC": 2,
31
+ "I-ORG": 6,
32
+ "I-PER": 4,
33
+ "O": 0
34
  },
35
  "max_position_embeddings": 512,
36
  "model_type": "distilbert",