jaggernaut007 commited on
Commit
19bb185
1 Parent(s): 6bdb74a

Model save

Browse files
README.md ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model: Clinical-AI-Apollo/Medical-NER
4
+ tags:
5
+ - generated_from_trainer
6
+ model-index:
7
+ - name: Medical-NER-finetuned-ner
8
+ results: []
9
+ ---
10
+
11
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
12
+ should probably proofread and complete it, then remove this comment. -->
13
+
14
+ # Medical-NER-finetuned-ner
15
+
16
+ This model is a fine-tuned version of [Clinical-AI-Apollo/Medical-NER](https://huggingface.co/Clinical-AI-Apollo/Medical-NER) on an unknown dataset.
17
+
18
+ ## Model description
19
+
20
+ More information needed
21
+
22
+ ## Intended uses & limitations
23
+
24
+ More information needed
25
+
26
+ ## Training and evaluation data
27
+
28
+ More information needed
29
+
30
+ ## Training procedure
31
+
32
+ ### Training hyperparameters
33
+
34
+ The following hyperparameters were used during training:
35
+ - learning_rate: 2e-05
36
+ - train_batch_size: 6
37
+ - eval_batch_size: 4
38
+ - seed: 42
39
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
40
+ - lr_scheduler_type: linear
41
+ - num_epochs: 6
42
+
43
+ ### Framework versions
44
+
45
+ - Transformers 4.39.2
46
+ - Pytorch 1.12.1+cu102
47
+ - Datasets 2.18.0
48
+ - Tokenizers 0.15.2
config.json ADDED
@@ -0,0 +1,205 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "Clinical-AI-Apollo/Medical-NER",
3
+ "architectures": [
4
+ "DebertaV2ForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "hidden_act": "gelu",
8
+ "hidden_dropout_prob": 0.1,
9
+ "hidden_size": 768,
10
+ "id2label": {
11
+ "0": "O",
12
+ "1": "B-ACTIVITY",
13
+ "2": "I-ACTIVITY",
14
+ "3": "I-ADMINISTRATION",
15
+ "4": "B-ADMINISTRATION",
16
+ "5": "B-AGE",
17
+ "6": "I-AGE",
18
+ "7": "I-AREA",
19
+ "8": "B-AREA",
20
+ "9": "B-BIOLOGICAL_ATTRIBUTE",
21
+ "10": "I-BIOLOGICAL_ATTRIBUTE",
22
+ "11": "I-BIOLOGICAL_STRUCTURE",
23
+ "12": "B-BIOLOGICAL_STRUCTURE",
24
+ "13": "B-CLINICAL_EVENT",
25
+ "14": "I-CLINICAL_EVENT",
26
+ "15": "B-COLOR",
27
+ "16": "I-COLOR",
28
+ "17": "I-COREFERENCE",
29
+ "18": "B-COREFERENCE",
30
+ "19": "B-DATE",
31
+ "20": "I-DATE",
32
+ "21": "I-DETAILED_DESCRIPTION",
33
+ "22": "B-DETAILED_DESCRIPTION",
34
+ "23": "I-DIAGNOSTIC_PROCEDURE",
35
+ "24": "B-DIAGNOSTIC_PROCEDURE",
36
+ "25": "I-DISEASE_DISORDER",
37
+ "26": "B-DISEASE_DISORDER",
38
+ "27": "B-DISTANCE",
39
+ "28": "I-DISTANCE",
40
+ "29": "B-DOSAGE",
41
+ "30": "I-DOSAGE",
42
+ "31": "I-DURATION",
43
+ "32": "B-DURATION",
44
+ "33": "I-FAMILY_HISTORY",
45
+ "34": "B-FAMILY_HISTORY",
46
+ "35": "B-FREQUENCY",
47
+ "36": "I-FREQUENCY",
48
+ "37": "I-HEIGHT",
49
+ "38": "B-HEIGHT",
50
+ "39": "B-HISTORY",
51
+ "40": "I-HISTORY",
52
+ "41": "I-LAB_VALUE",
53
+ "42": "B-LAB_VALUE",
54
+ "43": "I-MASS",
55
+ "44": "B-MASS",
56
+ "45": "I-MEDICATION",
57
+ "46": "B-MEDICATION",
58
+ "47": "I-NONBIOLOGICAL_LOCATION",
59
+ "48": "B-NONBIOLOGICAL_LOCATION",
60
+ "49": "I-OCCUPATION",
61
+ "50": "B-OCCUPATION",
62
+ "51": "B-OTHER_ENTITY",
63
+ "52": "I-OTHER_ENTITY",
64
+ "53": "B-OTHER_EVENT",
65
+ "54": "I-OTHER_EVENT",
66
+ "55": "I-OUTCOME",
67
+ "56": "B-OUTCOME",
68
+ "57": "I-PERSONAL_BACKGROUND",
69
+ "58": "B-PERSONAL_BACKGROUND",
70
+ "59": "B-QUALITATIVE_CONCEPT",
71
+ "60": "I-QUALITATIVE_CONCEPT",
72
+ "61": "I-QUANTITATIVE_CONCEPT",
73
+ "62": "B-QUANTITATIVE_CONCEPT",
74
+ "63": "B-SEVERITY",
75
+ "64": "I-SEVERITY",
76
+ "65": "B-SEX",
77
+ "66": "I-SEX",
78
+ "67": "B-SHAPE",
79
+ "68": "I-SHAPE",
80
+ "69": "B-SIGN_SYMPTOM",
81
+ "70": "I-SIGN_SYMPTOM",
82
+ "71": "B-SUBJECT",
83
+ "72": "I-SUBJECT",
84
+ "73": "B-TEXTURE",
85
+ "74": "I-TEXTURE",
86
+ "75": "B-THERAPEUTIC_PROCEDURE",
87
+ "76": "I-THERAPEUTIC_PROCEDURE",
88
+ "77": "I-TIME",
89
+ "78": "B-TIME",
90
+ "79": "B-VOLUME",
91
+ "80": "I-VOLUME",
92
+ "81": "I-WEIGHT",
93
+ "82": "B-WEIGHT"
94
+ },
95
+ "initializer_range": 0.02,
96
+ "intermediate_size": 3072,
97
+ "label2id": {
98
+ "B-ACTIVITY": 1,
99
+ "B-ADMINISTRATION": 4,
100
+ "B-AGE": 5,
101
+ "B-AREA": 8,
102
+ "B-BIOLOGICAL_ATTRIBUTE": 9,
103
+ "B-BIOLOGICAL_STRUCTURE": 12,
104
+ "B-CLINICAL_EVENT": 13,
105
+ "B-COLOR": 15,
106
+ "B-COREFERENCE": 18,
107
+ "B-DATE": 19,
108
+ "B-DETAILED_DESCRIPTION": 22,
109
+ "B-DIAGNOSTIC_PROCEDURE": 24,
110
+ "B-DISEASE_DISORDER": 26,
111
+ "B-DISTANCE": 27,
112
+ "B-DOSAGE": 29,
113
+ "B-DURATION": 32,
114
+ "B-FAMILY_HISTORY": 34,
115
+ "B-FREQUENCY": 35,
116
+ "B-HEIGHT": 38,
117
+ "B-HISTORY": 39,
118
+ "B-LAB_VALUE": 42,
119
+ "B-MASS": 44,
120
+ "B-MEDICATION": 46,
121
+ "B-NONBIOLOGICAL_LOCATION": 48,
122
+ "B-OCCUPATION": 50,
123
+ "B-OTHER_ENTITY": 51,
124
+ "B-OTHER_EVENT": 53,
125
+ "B-OUTCOME": 56,
126
+ "B-PERSONAL_BACKGROUND": 58,
127
+ "B-QUALITATIVE_CONCEPT": 59,
128
+ "B-QUANTITATIVE_CONCEPT": 62,
129
+ "B-SEVERITY": 63,
130
+ "B-SEX": 65,
131
+ "B-SHAPE": 67,
132
+ "B-SIGN_SYMPTOM": 69,
133
+ "B-SUBJECT": 71,
134
+ "B-TEXTURE": 73,
135
+ "B-THERAPEUTIC_PROCEDURE": 75,
136
+ "B-TIME": 78,
137
+ "B-VOLUME": 79,
138
+ "B-WEIGHT": 82,
139
+ "I-ACTIVITY": 2,
140
+ "I-ADMINISTRATION": 3,
141
+ "I-AGE": 6,
142
+ "I-AREA": 7,
143
+ "I-BIOLOGICAL_ATTRIBUTE": 10,
144
+ "I-BIOLOGICAL_STRUCTURE": 11,
145
+ "I-CLINICAL_EVENT": 14,
146
+ "I-COLOR": 16,
147
+ "I-COREFERENCE": 17,
148
+ "I-DATE": 20,
149
+ "I-DETAILED_DESCRIPTION": 21,
150
+ "I-DIAGNOSTIC_PROCEDURE": 23,
151
+ "I-DISEASE_DISORDER": 25,
152
+ "I-DISTANCE": 28,
153
+ "I-DOSAGE": 30,
154
+ "I-DURATION": 31,
155
+ "I-FAMILY_HISTORY": 33,
156
+ "I-FREQUENCY": 36,
157
+ "I-HEIGHT": 37,
158
+ "I-HISTORY": 40,
159
+ "I-LAB_VALUE": 41,
160
+ "I-MASS": 43,
161
+ "I-MEDICATION": 45,
162
+ "I-NONBIOLOGICAL_LOCATION": 47,
163
+ "I-OCCUPATION": 49,
164
+ "I-OTHER_ENTITY": 52,
165
+ "I-OTHER_EVENT": 54,
166
+ "I-OUTCOME": 55,
167
+ "I-PERSONAL_BACKGROUND": 57,
168
+ "I-QUALITATIVE_CONCEPT": 60,
169
+ "I-QUANTITATIVE_CONCEPT": 61,
170
+ "I-SEVERITY": 64,
171
+ "I-SEX": 66,
172
+ "I-SHAPE": 68,
173
+ "I-SIGN_SYMPTOM": 70,
174
+ "I-SUBJECT": 72,
175
+ "I-TEXTURE": 74,
176
+ "I-THERAPEUTIC_PROCEDURE": 76,
177
+ "I-TIME": 77,
178
+ "I-VOLUME": 80,
179
+ "I-WEIGHT": 81,
180
+ "O": 0
181
+ },
182
+ "layer_norm_eps": 1e-07,
183
+ "max_position_embeddings": 512,
184
+ "max_relative_positions": -1,
185
+ "model_type": "deberta-v2",
186
+ "norm_rel_ebd": "layer_norm",
187
+ "num_attention_heads": 12,
188
+ "num_hidden_layers": 12,
189
+ "pad_token_id": 0,
190
+ "pooler_dropout": 0,
191
+ "pooler_hidden_act": "gelu",
192
+ "pooler_hidden_size": 768,
193
+ "pos_att_type": [
194
+ "p2c",
195
+ "c2p"
196
+ ],
197
+ "position_biased_input": false,
198
+ "position_buckets": 256,
199
+ "relative_attention": true,
200
+ "share_att_key": true,
201
+ "torch_dtype": "float32",
202
+ "transformers_version": "4.39.2",
203
+ "type_vocab_size": 0,
204
+ "vocab_size": 128100
205
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0869169ee520de1aae48681b98e1042b3406f8dfd86a0a06009dfc2fb518eb3b
3
+ size 735605900
special_tokens_map.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "[CLS]",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "cls_token": {
10
+ "content": "[CLS]",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "eos_token": {
17
+ "content": "[SEP]",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "mask_token": {
24
+ "content": "[MASK]",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "pad_token": {
31
+ "content": "[PAD]",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ },
37
+ "sep_token": {
38
+ "content": "[SEP]",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false
43
+ },
44
+ "unk_token": {
45
+ "content": "[UNK]",
46
+ "lstrip": false,
47
+ "normalized": true,
48
+ "rstrip": false,
49
+ "single_word": false
50
+ }
51
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": true,
3
+ "added_tokens_decoder": {
4
+ "0": {
5
+ "content": "[PAD]",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "1": {
13
+ "content": "[CLS]",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "2": {
21
+ "content": "[SEP]",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "3": {
29
+ "content": "[UNK]",
30
+ "lstrip": false,
31
+ "normalized": true,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "128000": {
37
+ "content": "[MASK]",
38
+ "lstrip": false,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ }
44
+ },
45
+ "bos_token": "[CLS]",
46
+ "clean_up_tokenization_spaces": true,
47
+ "cls_token": "[CLS]",
48
+ "do_lower_case": false,
49
+ "eos_token": "[SEP]",
50
+ "mask_token": "[MASK]",
51
+ "max_length": 512,
52
+ "model_max_length": 1000000000000000019884624838656,
53
+ "pad_token": "[PAD]",
54
+ "sep_token": "[SEP]",
55
+ "sp_model_kwargs": {},
56
+ "split_by_punct": false,
57
+ "stride": 0,
58
+ "tokenizer_class": "DebertaV2Tokenizer",
59
+ "truncation_side": "right",
60
+ "truncation_strategy": "longest_first",
61
+ "unk_token": "[UNK]",
62
+ "vocab_type": "spm"
63
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8280c5db6559eca6ebac8e65c3555c0d423372e0769d5326e1890367e110c0e6
3
+ size 4463