Training complete
Browse files- README.md +80 -0
- config.json +194 -0
- model.safetensors +3 -0
- runs/Feb01_03-17-09_fa8cac01d5e9/events.out.tfevents.1738379831.fa8cac01d5e9.1529.5 +3 -0
- special_tokens_map.json +37 -0
- tokenizer.json +0 -0
- tokenizer_config.json +61 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
license: apache-2.0
|
4 |
+
base_model: d4data/biomedical-ner-all
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
metrics:
|
8 |
+
- accuracy
|
9 |
+
model-index:
|
10 |
+
- name: ner-biomedical-maccrobat2018
|
11 |
+
results: []
|
12 |
+
---
|
13 |
+
|
14 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
15 |
+
should probably proofread and complete it, then remove this comment. -->
|
16 |
+
|
17 |
+
# ner-biomedical-maccrobat2018
|
18 |
+
|
19 |
+
This model is a fine-tuned version of [d4data/biomedical-ner-all](https://huggingface.co/d4data/biomedical-ner-all) on an unknown dataset.
|
20 |
+
It achieves the following results on the evaluation set:
|
21 |
+
- Loss: 0.5565
|
22 |
+
- Accuracy: 0.7909
|
23 |
+
|
24 |
+
## Model description
|
25 |
+
|
26 |
+
More information needed
|
27 |
+
|
28 |
+
## Intended uses & limitations
|
29 |
+
|
30 |
+
More information needed
|
31 |
+
|
32 |
+
## Training and evaluation data
|
33 |
+
|
34 |
+
More information needed
|
35 |
+
|
36 |
+
## Training procedure
|
37 |
+
|
38 |
+
### Training hyperparameters
|
39 |
+
|
40 |
+
The following hyperparameters were used during training:
|
41 |
+
- learning_rate: 0.0001
|
42 |
+
- train_batch_size: 16
|
43 |
+
- eval_batch_size: 16
|
44 |
+
- seed: 42
|
45 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
46 |
+
- lr_scheduler_type: linear
|
47 |
+
- num_epochs: 20
|
48 |
+
|
49 |
+
### Training results
|
50 |
+
|
51 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
52 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
53 |
+
| 2.641 | 1.0 | 10 | 1.5081 | 0.3577 |
|
54 |
+
| 1.338 | 2.0 | 20 | 0.9042 | 0.6165 |
|
55 |
+
| 0.877 | 3.0 | 30 | 0.6942 | 0.7081 |
|
56 |
+
| 0.6363 | 4.0 | 40 | 0.5950 | 0.7520 |
|
57 |
+
| 0.4868 | 5.0 | 50 | 0.5515 | 0.7573 |
|
58 |
+
| 0.3798 | 6.0 | 60 | 0.5296 | 0.7688 |
|
59 |
+
| 0.3047 | 7.0 | 70 | 0.5217 | 0.7825 |
|
60 |
+
| 0.2521 | 8.0 | 80 | 0.5290 | 0.7788 |
|
61 |
+
| 0.2123 | 9.0 | 90 | 0.5283 | 0.7852 |
|
62 |
+
| 0.1819 | 10.0 | 100 | 0.5309 | 0.7880 |
|
63 |
+
| 0.1585 | 11.0 | 110 | 0.5345 | 0.7835 |
|
64 |
+
| 0.1388 | 12.0 | 120 | 0.5430 | 0.7823 |
|
65 |
+
| 0.1235 | 13.0 | 130 | 0.5350 | 0.7871 |
|
66 |
+
| 0.1128 | 14.0 | 140 | 0.5406 | 0.7882 |
|
67 |
+
| 0.1036 | 15.0 | 150 | 0.5561 | 0.7873 |
|
68 |
+
| 0.0985 | 16.0 | 160 | 0.5603 | 0.7887 |
|
69 |
+
| 0.0924 | 17.0 | 170 | 0.5559 | 0.7894 |
|
70 |
+
| 0.0883 | 18.0 | 180 | 0.5575 | 0.7909 |
|
71 |
+
| 0.0832 | 19.0 | 190 | 0.5545 | 0.7910 |
|
72 |
+
| 0.0843 | 20.0 | 200 | 0.5565 | 0.7909 |
|
73 |
+
|
74 |
+
|
75 |
+
### Framework versions
|
76 |
+
|
77 |
+
- Transformers 4.47.1
|
78 |
+
- Pytorch 2.5.1+cu124
|
79 |
+
- Datasets 3.2.0
|
80 |
+
- Tokenizers 0.21.0
|
config.json
ADDED
@@ -0,0 +1,194 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "d4data/biomedical-ner-all",
|
3 |
+
"activation": "gelu",
|
4 |
+
"architectures": [
|
5 |
+
"DistilBertForTokenClassification"
|
6 |
+
],
|
7 |
+
"attention_dropout": 0.1,
|
8 |
+
"dim": 768,
|
9 |
+
"dropout": 0.1,
|
10 |
+
"hidden_dim": 3072,
|
11 |
+
"id2label": {
|
12 |
+
"0": "O",
|
13 |
+
"1": "B-Age",
|
14 |
+
"2": "I-Age",
|
15 |
+
"3": "B-History",
|
16 |
+
"4": "I-History",
|
17 |
+
"5": "B-Sex",
|
18 |
+
"6": "B-Clinical_event",
|
19 |
+
"7": "B-Sign_symptom",
|
20 |
+
"8": "B-Duration",
|
21 |
+
"9": "I-Duration",
|
22 |
+
"10": "I-Sign_symptom",
|
23 |
+
"11": "B-Coreference",
|
24 |
+
"12": "B-Frequency",
|
25 |
+
"13": "I-Frequency",
|
26 |
+
"14": "B-Detailed_description",
|
27 |
+
"15": "I-Detailed_description",
|
28 |
+
"16": "B-Biological_structure",
|
29 |
+
"17": "I-Biological_structure",
|
30 |
+
"18": "B-Lab_value",
|
31 |
+
"19": "I-Lab_value",
|
32 |
+
"20": "B-Diagnostic_procedure",
|
33 |
+
"21": "I-Diagnostic_procedure",
|
34 |
+
"22": "B-Disease_disorder",
|
35 |
+
"23": "I-Disease_disorder",
|
36 |
+
"24": "B-Therapeutic_procedure",
|
37 |
+
"25": "I-Therapeutic_procedure",
|
38 |
+
"26": "I-Clinical_event",
|
39 |
+
"27": "B-Date",
|
40 |
+
"28": "I-Date",
|
41 |
+
"29": "I-Coreference",
|
42 |
+
"30": "B-Texture",
|
43 |
+
"31": "I-Texture",
|
44 |
+
"32": "B-Severity",
|
45 |
+
"33": "B-Biological_attribute",
|
46 |
+
"34": "I-Biological_attribute",
|
47 |
+
"35": "B-Activity",
|
48 |
+
"36": "I-Activity",
|
49 |
+
"37": "B-Shape",
|
50 |
+
"38": "I-Shape",
|
51 |
+
"39": "B-Color",
|
52 |
+
"40": "I-Color",
|
53 |
+
"41": "B-Outcome",
|
54 |
+
"42": "I-Outcome",
|
55 |
+
"43": "B-Personal_background",
|
56 |
+
"44": "B-Medication",
|
57 |
+
"45": "I-Medication",
|
58 |
+
"46": "B-Dosage",
|
59 |
+
"47": "I-Dosage",
|
60 |
+
"48": "B-Nonbiological_location",
|
61 |
+
"49": "I-Severity",
|
62 |
+
"50": "B-Other_event",
|
63 |
+
"51": "I-Other_event",
|
64 |
+
"52": "B-Administration",
|
65 |
+
"53": "I-Administration",
|
66 |
+
"54": "I-Personal_background",
|
67 |
+
"55": "I-Nonbiological_location",
|
68 |
+
"56": "B-Occupation",
|
69 |
+
"57": "B-Other_entity",
|
70 |
+
"58": "I-Other_entity",
|
71 |
+
"59": "B-Distance",
|
72 |
+
"60": "I-Distance",
|
73 |
+
"61": "B-Time",
|
74 |
+
"62": "I-Time",
|
75 |
+
"63": "B-Area",
|
76 |
+
"64": "I-Area",
|
77 |
+
"65": "B-Family_history",
|
78 |
+
"66": "I-Family_history",
|
79 |
+
"67": "B-Subject",
|
80 |
+
"68": "I-Subject",
|
81 |
+
"69": "B-Volume",
|
82 |
+
"70": "I-Volume",
|
83 |
+
"71": "B-Quantitative_concept",
|
84 |
+
"72": "I-Quantitative_concept",
|
85 |
+
"73": "B-Height",
|
86 |
+
"74": "I-Height",
|
87 |
+
"75": "B-Weight",
|
88 |
+
"76": "I-Weight",
|
89 |
+
"77": "B-Qualitative_concept",
|
90 |
+
"78": "I-Qualitative_concept",
|
91 |
+
"79": "I-Occupation",
|
92 |
+
"80": "I-Sex",
|
93 |
+
"81": "B-Mass",
|
94 |
+
"82": "I-Mass"
|
95 |
+
},
|
96 |
+
"initializer_range": 0.02,
|
97 |
+
"label2id": {
|
98 |
+
"B-Activity": 35,
|
99 |
+
"B-Administration": 52,
|
100 |
+
"B-Age": 1,
|
101 |
+
"B-Area": 63,
|
102 |
+
"B-Biological_attribute": 33,
|
103 |
+
"B-Biological_structure": 16,
|
104 |
+
"B-Clinical_event": 6,
|
105 |
+
"B-Color": 39,
|
106 |
+
"B-Coreference": 11,
|
107 |
+
"B-Date": 27,
|
108 |
+
"B-Detailed_description": 14,
|
109 |
+
"B-Diagnostic_procedure": 20,
|
110 |
+
"B-Disease_disorder": 22,
|
111 |
+
"B-Distance": 59,
|
112 |
+
"B-Dosage": 46,
|
113 |
+
"B-Duration": 8,
|
114 |
+
"B-Family_history": 65,
|
115 |
+
"B-Frequency": 12,
|
116 |
+
"B-Height": 73,
|
117 |
+
"B-History": 3,
|
118 |
+
"B-Lab_value": 18,
|
119 |
+
"B-Mass": 81,
|
120 |
+
"B-Medication": 44,
|
121 |
+
"B-Nonbiological_location": 48,
|
122 |
+
"B-Occupation": 56,
|
123 |
+
"B-Other_entity": 57,
|
124 |
+
"B-Other_event": 50,
|
125 |
+
"B-Outcome": 41,
|
126 |
+
"B-Personal_background": 43,
|
127 |
+
"B-Qualitative_concept": 77,
|
128 |
+
"B-Quantitative_concept": 71,
|
129 |
+
"B-Severity": 32,
|
130 |
+
"B-Sex": 5,
|
131 |
+
"B-Shape": 37,
|
132 |
+
"B-Sign_symptom": 7,
|
133 |
+
"B-Subject": 67,
|
134 |
+
"B-Texture": 30,
|
135 |
+
"B-Therapeutic_procedure": 24,
|
136 |
+
"B-Time": 61,
|
137 |
+
"B-Volume": 69,
|
138 |
+
"B-Weight": 75,
|
139 |
+
"I-Activity": 36,
|
140 |
+
"I-Administration": 53,
|
141 |
+
"I-Age": 2,
|
142 |
+
"I-Area": 64,
|
143 |
+
"I-Biological_attribute": 34,
|
144 |
+
"I-Biological_structure": 17,
|
145 |
+
"I-Clinical_event": 26,
|
146 |
+
"I-Color": 40,
|
147 |
+
"I-Coreference": 29,
|
148 |
+
"I-Date": 28,
|
149 |
+
"I-Detailed_description": 15,
|
150 |
+
"I-Diagnostic_procedure": 21,
|
151 |
+
"I-Disease_disorder": 23,
|
152 |
+
"I-Distance": 60,
|
153 |
+
"I-Dosage": 47,
|
154 |
+
"I-Duration": 9,
|
155 |
+
"I-Family_history": 66,
|
156 |
+
"I-Frequency": 13,
|
157 |
+
"I-Height": 74,
|
158 |
+
"I-History": 4,
|
159 |
+
"I-Lab_value": 19,
|
160 |
+
"I-Mass": 82,
|
161 |
+
"I-Medication": 45,
|
162 |
+
"I-Nonbiological_location": 55,
|
163 |
+
"I-Occupation": 79,
|
164 |
+
"I-Other_entity": 58,
|
165 |
+
"I-Other_event": 51,
|
166 |
+
"I-Outcome": 42,
|
167 |
+
"I-Personal_background": 54,
|
168 |
+
"I-Qualitative_concept": 78,
|
169 |
+
"I-Quantitative_concept": 72,
|
170 |
+
"I-Severity": 49,
|
171 |
+
"I-Sex": 80,
|
172 |
+
"I-Shape": 38,
|
173 |
+
"I-Sign_symptom": 10,
|
174 |
+
"I-Subject": 68,
|
175 |
+
"I-Texture": 31,
|
176 |
+
"I-Therapeutic_procedure": 25,
|
177 |
+
"I-Time": 62,
|
178 |
+
"I-Volume": 70,
|
179 |
+
"I-Weight": 76,
|
180 |
+
"O": 0
|
181 |
+
},
|
182 |
+
"max_position_embeddings": 512,
|
183 |
+
"model_type": "distilbert",
|
184 |
+
"n_heads": 12,
|
185 |
+
"n_layers": 6,
|
186 |
+
"pad_token_id": 0,
|
187 |
+
"qa_dropout": 0.1,
|
188 |
+
"seq_classif_dropout": 0.2,
|
189 |
+
"sinusoidal_pos_embds": false,
|
190 |
+
"tie_weights_": true,
|
191 |
+
"torch_dtype": "float32",
|
192 |
+
"transformers_version": "4.47.1",
|
193 |
+
"vocab_size": 30522
|
194 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9c07e2c98ca189a2d17892fde7f3714597bad71bc215278fca628fcfaa54ed2c
|
3 |
+
size 265719180
|
runs/Feb01_03-17-09_fa8cac01d5e9/events.out.tfevents.1738379831.fa8cac01d5e9.1529.5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:23bad8ac8491e4aa2dfa163e7269c4490f93fa1acefd7bca124d862886d528af
|
3 |
+
size 20180
|
special_tokens_map.json
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cls_token": {
|
3 |
+
"content": "[CLS]",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": false,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"mask_token": {
|
10 |
+
"content": "[MASK]",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": false,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"pad_token": {
|
17 |
+
"content": "[PAD]",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": false,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
},
|
23 |
+
"sep_token": {
|
24 |
+
"content": "[SEP]",
|
25 |
+
"lstrip": false,
|
26 |
+
"normalized": false,
|
27 |
+
"rstrip": false,
|
28 |
+
"single_word": false
|
29 |
+
},
|
30 |
+
"unk_token": {
|
31 |
+
"content": "[UNK]",
|
32 |
+
"lstrip": false,
|
33 |
+
"normalized": false,
|
34 |
+
"rstrip": false,
|
35 |
+
"single_word": false
|
36 |
+
}
|
37 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"0": {
|
4 |
+
"content": "[PAD]",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false,
|
9 |
+
"special": true
|
10 |
+
},
|
11 |
+
"100": {
|
12 |
+
"content": "[UNK]",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"101": {
|
20 |
+
"content": "[CLS]",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
},
|
27 |
+
"102": {
|
28 |
+
"content": "[SEP]",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false,
|
33 |
+
"special": true
|
34 |
+
},
|
35 |
+
"103": {
|
36 |
+
"content": "[MASK]",
|
37 |
+
"lstrip": false,
|
38 |
+
"normalized": false,
|
39 |
+
"rstrip": false,
|
40 |
+
"single_word": false,
|
41 |
+
"special": true
|
42 |
+
}
|
43 |
+
},
|
44 |
+
"clean_up_tokenization_spaces": false,
|
45 |
+
"cls_token": "[CLS]",
|
46 |
+
"cuda": 0,
|
47 |
+
"do_lower_case": true,
|
48 |
+
"extra_special_tokens": {},
|
49 |
+
"mask_token": "[MASK]",
|
50 |
+
"max_length": 512,
|
51 |
+
"model_max_length": 512,
|
52 |
+
"pad_token": "[PAD]",
|
53 |
+
"sep_token": "[SEP]",
|
54 |
+
"stride": 0,
|
55 |
+
"strip_accents": null,
|
56 |
+
"tokenize_chinese_chars": true,
|
57 |
+
"tokenizer_class": "DistilBertTokenizer",
|
58 |
+
"truncation_side": "right",
|
59 |
+
"truncation_strategy": "longest_first",
|
60 |
+
"unk_token": "[UNK]"
|
61 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1e6ecf50a04256069a24209a7c4a36f2b12311413bc029d760f03a9dd0263ec2
|
3 |
+
size 5304
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|