longluu commited on
Commit
06cfa69
1 Parent(s): a94dbf1

fix the label2id in config

Browse files
Files changed (1) hide show
  1. config.json +67 -88
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "/home/ec2-user/SageMaker/LLM-NER-clinical-text/models/medmentions/gatortrons/checkpoint-5931",
3
  "architectures": [
4
  "MegatronBertForTokenClassification"
5
  ],
@@ -8,96 +8,75 @@
8
  "hidden_dropout_prob": 0.1,
9
  "hidden_size": 1024,
10
  "id2label": {
11
- "0": "LABEL_0",
12
- "1": "LABEL_1",
13
- "2": "LABEL_2",
14
- "3": "LABEL_3",
15
- "4": "LABEL_4",
16
- "5": "LABEL_5",
17
- "6": "LABEL_6",
18
- "7": "LABEL_7",
19
- "8": "LABEL_8",
20
- "9": "LABEL_9",
21
- "10": "LABEL_10",
22
- "11": "LABEL_11",
23
- "12": "LABEL_12",
24
- "13": "LABEL_13",
25
- "14": "LABEL_14",
26
- "15": "LABEL_15",
27
- "16": "LABEL_16",
28
- "17": "LABEL_17",
29
- "18": "LABEL_18",
30
- "19": "LABEL_19",
31
- "20": "LABEL_20",
32
- "21": "LABEL_21",
33
- "22": "LABEL_22",
34
- "23": "LABEL_23",
35
- "24": "LABEL_24",
36
- "25": "LABEL_25",
37
- "26": "LABEL_26",
38
- "27": "LABEL_27",
39
- "28": "LABEL_28",
40
- "29": "LABEL_29",
41
- "30": "LABEL_30",
42
- "31": "LABEL_31",
43
- "32": "LABEL_32",
44
- "33": "LABEL_33",
45
- "34": "LABEL_34",
46
- "35": "LABEL_35",
47
- "36": "LABEL_36",
48
- "37": "LABEL_37",
49
- "38": "LABEL_38",
50
- "39": "LABEL_39",
51
- "40": "LABEL_40",
52
- "41": "LABEL_41",
53
- "42": "LABEL_42"
54
  },
55
  "initializer_range": 0.02,
56
  "intermediate_size": 4096,
57
  "label2id": {
58
- "LABEL_0": 0,
59
- "LABEL_1": 1,
60
- "LABEL_10": 10,
61
- "LABEL_11": 11,
62
- "LABEL_12": 12,
63
- "LABEL_13": 13,
64
- "LABEL_14": 14,
65
- "LABEL_15": 15,
66
- "LABEL_16": 16,
67
- "LABEL_17": 17,
68
- "LABEL_18": 18,
69
- "LABEL_19": 19,
70
- "LABEL_2": 2,
71
- "LABEL_20": 20,
72
- "LABEL_21": 21,
73
- "LABEL_22": 22,
74
- "LABEL_23": 23,
75
- "LABEL_24": 24,
76
- "LABEL_25": 25,
77
- "LABEL_26": 26,
78
- "LABEL_27": 27,
79
- "LABEL_28": 28,
80
- "LABEL_29": 29,
81
- "LABEL_3": 3,
82
- "LABEL_30": 30,
83
- "LABEL_31": 31,
84
- "LABEL_32": 32,
85
- "LABEL_33": 33,
86
- "LABEL_34": 34,
87
- "LABEL_35": 35,
88
- "LABEL_36": 36,
89
- "LABEL_37": 37,
90
- "LABEL_38": 38,
91
- "LABEL_39": 39,
92
- "LABEL_4": 4,
93
- "LABEL_40": 40,
94
- "LABEL_41": 41,
95
- "LABEL_42": 42,
96
- "LABEL_5": 5,
97
- "LABEL_6": 6,
98
- "LABEL_7": 7,
99
- "LABEL_8": 8,
100
- "LABEL_9": 9
101
  },
102
  "layer_norm_eps": 1e-12,
103
  "max_position_embeddings": 512,
@@ -112,4 +91,4 @@
112
  "type_vocab_size": 2,
113
  "use_cache": true,
114
  "vocab_size": 50176
115
- }
 
1
  {
2
+ "_name_or_path": "UFNLP/gatortrons",
3
  "architectures": [
4
  "MegatronBertForTokenClassification"
5
  ],
 
8
  "hidden_dropout_prob": 0.1,
9
  "hidden_size": 1024,
10
  "id2label": {
11
+ "0": "['Living Beings', 'Virus']",
12
+ "1": "['Living Beings', 'Virus']",
13
+ "2": "['Living Beings', 'Bacterium']",
14
+ "3": "['Living Beings', 'Bacterium']",
15
+ "4": "['Anatomy', 'Anatomical Structure']",
16
+ "5": "['Anatomy', 'Anatomical Structure']",
17
+ "6": "['Anatomy', 'Body System']",
18
+ "7": "['Anatomy', 'Body System']",
19
+ "8": "['Anatomy', 'Body Substance']",
20
+ "9": "['Anatomy', 'Body Substance']",
21
+ "10": "['Disorders', 'Finding']",
22
+ "11": "['Disorders', 'Finding']",
23
+ "12": "['Disorders', 'Injury or Poisoning']",
24
+ "13": "['Disorders', 'Injury or Poisoning']",
25
+ "14": "['Phenomena', 'Biologic Function']",
26
+ "15": "['Phenomena', 'Biologic Function']",
27
+ "16": "['Procedures', 'Health Care Activity']",
28
+ "17": "['Procedures', 'Health Care Activity']",
29
+ "18": "['Procedures', 'Research Activity']",
30
+ "19": "['Procedures', 'Research Activity']",
31
+ "20": "['Devices', 'Medical Device']",
32
+ "21": "['Devices', 'Medical Device']",
33
+ "22": "['Concepts & Ideas', 'Spatial Concept']",
34
+ "23": "['Concepts & Ideas', 'Spatial Concept']",
35
+ "24": "['Occupations', 'Biomedical Occupation or Discipline']",
36
+ "25": "['Occupations', 'Biomedical Occupation or Discipline']",
37
+ "26": "['Organizations', 'Organization']",
38
+ "27": "['Organizations', 'Organization']",
39
+ "28": "['Living Beings', 'Professional or Occupational Group']",
40
+ "29": "['Living Beings', 'Professional or Occupational Group']",
41
+ "30": "['Living Beings', 'Population Group']",
42
+ "31": "['Living Beings', 'Population Group']",
43
+ "32": "['Chemicals & Drugs', 'Chemical']",
44
+ "33": "['Chemicals & Drugs', 'Chemical']",
45
+ "34": "['Objects', 'Food']",
46
+ "35": "['Objects', 'Food']",
47
+ "36": "['Concepts & Ideas', 'Intellectual Product']",
48
+ "37": "['Concepts & Ideas', 'Intellectual Product']",
49
+ "38": "['Physiology', 'Clinical Attribute']",
50
+ "39": "['Physiology', 'Clinical Attribute']",
51
+ "40": "['Living Beings', 'Eukaryote']",
52
+ "41": "['Living Beings', 'Eukaryote']",
53
+ "42": "None"
54
  },
55
  "initializer_range": 0.02,
56
  "intermediate_size": 4096,
57
  "label2id": {
58
+ "['Living Beings', 'Virus']": 1,
59
+ "['Living Beings', 'Bacterium']": 3,
60
+ "['Anatomy', 'Anatomical Structure']": 5,
61
+ "['Anatomy', 'Body System']": 7,
62
+ "['Anatomy', 'Body Substance']": 9,
63
+ "['Disorders', 'Finding']": 11,
64
+ "['Disorders', 'Injury or Poisoning']": 13,
65
+ "['Phenomena', 'Biologic Function']": 15,
66
+ "['Procedures', 'Health Care Activity']": 17,
67
+ "['Procedures', 'Research Activity']": 19,
68
+ "['Devices', 'Medical Device']": 21,
69
+ "['Concepts & Ideas', 'Spatial Concept']": 23,
70
+ "['Occupations', 'Biomedical Occupation or Discipline']": 25,
71
+ "['Organizations', 'Organization']": 27,
72
+ "['Living Beings', 'Professional or Occupational Group']": 29,
73
+ "['Living Beings', 'Population Group']": 31,
74
+ "['Chemicals & Drugs', 'Chemical']": 33,
75
+ "['Objects', 'Food']": 35,
76
+ "['Concepts & Ideas', 'Intellectual Product']": 37,
77
+ "['Physiology', 'Clinical Attribute']": 39,
78
+ "['Living Beings', 'Eukaryote']": 41,
79
+ "None": 42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
80
  },
81
  "layer_norm_eps": 1e-12,
82
  "max_position_embeddings": 512,
 
91
  "type_vocab_size": 2,
92
  "use_cache": true,
93
  "vocab_size": 50176
94
+ }