End of training
Browse files- README.md +80 -0
- config.json +70 -0
- merges.txt +0 -0
- model.safetensors +3 -0
- runs/Jun02_15-28-42_361dc8c7bd60/events.out.tfevents.1717342122.361dc8c7bd60.10658.0 +3 -0
- special_tokens_map.json +51 -0
- tokenizer.json +0 -0
- tokenizer_config.json +58 -0
- training_args.bin +3 -0
- vocab.json +0 -0
README.md
ADDED
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: plncmm/roberta-clinical-wl-es
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- precision
|
8 |
+
- recall
|
9 |
+
- f1
|
10 |
+
- accuracy
|
11 |
+
model-index:
|
12 |
+
- name: roberta-clinical-wl-es-ner
|
13 |
+
results: []
|
14 |
+
---
|
15 |
+
|
16 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
17 |
+
should probably proofread and complete it, then remove this comment. -->
|
18 |
+
|
19 |
+
# roberta-clinical-wl-es-ner
|
20 |
+
|
21 |
+
This model is a fine-tuned version of [plncmm/roberta-clinical-wl-es](https://huggingface.co/plncmm/roberta-clinical-wl-es) on the None dataset.
|
22 |
+
It achieves the following results on the evaluation set:
|
23 |
+
- Loss: 0.3453
|
24 |
+
- Precision: 0.8647
|
25 |
+
- Recall: 0.8993
|
26 |
+
- F1: 0.8816
|
27 |
+
- Accuracy: 0.9391
|
28 |
+
|
29 |
+
## Model description
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Intended uses & limitations
|
34 |
+
|
35 |
+
More information needed
|
36 |
+
|
37 |
+
## Training and evaluation data
|
38 |
+
|
39 |
+
More information needed
|
40 |
+
|
41 |
+
## Training procedure
|
42 |
+
|
43 |
+
### Training hyperparameters
|
44 |
+
|
45 |
+
The following hyperparameters were used during training:
|
46 |
+
- learning_rate: 2e-05
|
47 |
+
- train_batch_size: 8
|
48 |
+
- eval_batch_size: 8
|
49 |
+
- seed: 42
|
50 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
51 |
+
- lr_scheduler_type: linear
|
52 |
+
- num_epochs: 15
|
53 |
+
|
54 |
+
### Training results
|
55 |
+
|
56 |
+
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|
57 |
+
|:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
|
58 |
+
| No log | 1.0 | 280 | 0.3149 | 0.7822 | 0.8356 | 0.8080 | 0.9164 |
|
59 |
+
| 0.5325 | 2.0 | 560 | 0.2693 | 0.8291 | 0.8696 | 0.8489 | 0.9271 |
|
60 |
+
| 0.5325 | 3.0 | 840 | 0.2509 | 0.8438 | 0.8726 | 0.8580 | 0.9299 |
|
61 |
+
| 0.1484 | 4.0 | 1120 | 0.2511 | 0.8425 | 0.9037 | 0.8721 | 0.9380 |
|
62 |
+
| 0.1484 | 5.0 | 1400 | 0.2873 | 0.8371 | 0.8830 | 0.8594 | 0.9307 |
|
63 |
+
| 0.0854 | 6.0 | 1680 | 0.3025 | 0.8725 | 0.9022 | 0.8871 | 0.9403 |
|
64 |
+
| 0.0854 | 7.0 | 1960 | 0.3040 | 0.8610 | 0.8993 | 0.8797 | 0.9403 |
|
65 |
+
| 0.0499 | 8.0 | 2240 | 0.3211 | 0.8683 | 0.8889 | 0.8785 | 0.9363 |
|
66 |
+
| 0.0359 | 9.0 | 2520 | 0.3294 | 0.8620 | 0.8978 | 0.8795 | 0.9366 |
|
67 |
+
| 0.0359 | 10.0 | 2800 | 0.3374 | 0.8900 | 0.8993 | 0.8946 | 0.9394 |
|
68 |
+
| 0.0248 | 11.0 | 3080 | 0.3543 | 0.8712 | 0.8919 | 0.8814 | 0.9372 |
|
69 |
+
| 0.0248 | 12.0 | 3360 | 0.3390 | 0.8606 | 0.8963 | 0.8781 | 0.9366 |
|
70 |
+
| 0.0209 | 13.0 | 3640 | 0.3337 | 0.8712 | 0.9022 | 0.8865 | 0.9394 |
|
71 |
+
| 0.0209 | 14.0 | 3920 | 0.3449 | 0.8698 | 0.9007 | 0.8850 | 0.9391 |
|
72 |
+
| 0.0182 | 15.0 | 4200 | 0.3453 | 0.8647 | 0.8993 | 0.8816 | 0.9391 |
|
73 |
+
|
74 |
+
|
75 |
+
### Framework versions
|
76 |
+
|
77 |
+
- Transformers 4.41.1
|
78 |
+
- Pytorch 2.3.0+cu121
|
79 |
+
- Datasets 2.19.1
|
80 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "plncmm/roberta-clinical-wl-es",
|
3 |
+
"architectures": [
|
4 |
+
"RobertaForTokenClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"bos_token_id": 0,
|
8 |
+
"classifier_dropout": null,
|
9 |
+
"eos_token_id": 2,
|
10 |
+
"gradient_checkpointing": false,
|
11 |
+
"hidden_act": "gelu",
|
12 |
+
"hidden_dropout_prob": 0.1,
|
13 |
+
"hidden_size": 768,
|
14 |
+
"id2label": {
|
15 |
+
"0": "O",
|
16 |
+
"1": "B-Anatomical_Entity",
|
17 |
+
"10": "I-Location",
|
18 |
+
"11": "B-Type_of_measure",
|
19 |
+
"12": "I-Type_of_measure",
|
20 |
+
"13": "B-Measure",
|
21 |
+
"14": "I-Measure",
|
22 |
+
"15": "B-Degree",
|
23 |
+
"16": "I-Degree",
|
24 |
+
"17": "B-ConditionalTemporal",
|
25 |
+
"18": "I-ConditionalTemporal",
|
26 |
+
"2": "I-Anatomical_Entity",
|
27 |
+
"3": "B-Finding",
|
28 |
+
"4": "I-Finding",
|
29 |
+
"5": "B-Uncertainty",
|
30 |
+
"6": "I-Uncertainty",
|
31 |
+
"7": "B-Negation",
|
32 |
+
"8": "I-Negation",
|
33 |
+
"9": "B-Location"
|
34 |
+
},
|
35 |
+
"initializer_range": 0.02,
|
36 |
+
"intermediate_size": 3072,
|
37 |
+
"label2id": {
|
38 |
+
"B-Anatomical_Entity": "1",
|
39 |
+
"B-ConditionalTemporal": "17",
|
40 |
+
"B-Degree": "15",
|
41 |
+
"B-Finding": "3",
|
42 |
+
"B-Location": "9",
|
43 |
+
"B-Measure": "13",
|
44 |
+
"B-Negation": "7",
|
45 |
+
"B-Type_of_measure": "11",
|
46 |
+
"B-Uncertainty": "5",
|
47 |
+
"I-Anatomical_Entity": "2",
|
48 |
+
"I-ConditionalTemporal": "18",
|
49 |
+
"I-Degree": "16",
|
50 |
+
"I-Finding": "4",
|
51 |
+
"I-Location": "10",
|
52 |
+
"I-Measure": "14",
|
53 |
+
"I-Negation": "8",
|
54 |
+
"I-Type_of_measure": "12",
|
55 |
+
"I-Uncertainty": "6",
|
56 |
+
"O": "0"
|
57 |
+
},
|
58 |
+
"layer_norm_eps": 1e-05,
|
59 |
+
"max_position_embeddings": 514,
|
60 |
+
"model_type": "roberta",
|
61 |
+
"num_attention_heads": 12,
|
62 |
+
"num_hidden_layers": 12,
|
63 |
+
"pad_token_id": 1,
|
64 |
+
"position_embedding_type": "absolute",
|
65 |
+
"torch_dtype": "float32",
|
66 |
+
"transformers_version": "4.41.1",
|
67 |
+
"type_vocab_size": 1,
|
68 |
+
"use_cache": true,
|
69 |
+
"vocab_size": 52000
|
70 |
+
}
|
merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:663ba827156ca169fc2fe9928ea7dc5359bdd98142b283fb26256dc3e5be2e9a
|
3 |
+
size 501632452
|
runs/Jun02_15-28-42_361dc8c7bd60/events.out.tfevents.1717342122.361dc8c7bd60.10658.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:75c244594ebdb2d0c5aa22ee55c9a25fd526d1756b3ae560c4e67236e3b74c13
|
3 |
+
size 15060
|
special_tokens_map.json
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "<s>",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": true,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"cls_token": {
|
10 |
+
"content": "<s>",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": true,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"eos_token": {
|
17 |
+
"content": "</s>",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": true,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
},
|
23 |
+
"mask_token": {
|
24 |
+
"content": "<mask>",
|
25 |
+
"lstrip": true,
|
26 |
+
"normalized": true,
|
27 |
+
"rstrip": false,
|
28 |
+
"single_word": false
|
29 |
+
},
|
30 |
+
"pad_token": {
|
31 |
+
"content": "<pad>",
|
32 |
+
"lstrip": false,
|
33 |
+
"normalized": true,
|
34 |
+
"rstrip": false,
|
35 |
+
"single_word": false
|
36 |
+
},
|
37 |
+
"sep_token": {
|
38 |
+
"content": "</s>",
|
39 |
+
"lstrip": false,
|
40 |
+
"normalized": true,
|
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,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_prefix_space": true,
|
3 |
+
"added_tokens_decoder": {
|
4 |
+
"0": {
|
5 |
+
"content": "<s>",
|
6 |
+
"lstrip": false,
|
7 |
+
"normalized": true,
|
8 |
+
"rstrip": false,
|
9 |
+
"single_word": false,
|
10 |
+
"special": true
|
11 |
+
},
|
12 |
+
"1": {
|
13 |
+
"content": "<pad>",
|
14 |
+
"lstrip": false,
|
15 |
+
"normalized": true,
|
16 |
+
"rstrip": false,
|
17 |
+
"single_word": false,
|
18 |
+
"special": true
|
19 |
+
},
|
20 |
+
"2": {
|
21 |
+
"content": "</s>",
|
22 |
+
"lstrip": false,
|
23 |
+
"normalized": true,
|
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 |
+
"51999": {
|
37 |
+
"content": "<mask>",
|
38 |
+
"lstrip": true,
|
39 |
+
"normalized": true,
|
40 |
+
"rstrip": false,
|
41 |
+
"single_word": false,
|
42 |
+
"special": true
|
43 |
+
}
|
44 |
+
},
|
45 |
+
"bos_token": "<s>",
|
46 |
+
"clean_up_tokenization_spaces": true,
|
47 |
+
"cls_token": "<s>",
|
48 |
+
"eos_token": "</s>",
|
49 |
+
"errors": "replace",
|
50 |
+
"mask_token": "<mask>",
|
51 |
+
"max_len": 512,
|
52 |
+
"model_max_length": 512,
|
53 |
+
"pad_token": "<pad>",
|
54 |
+
"sep_token": "</s>",
|
55 |
+
"tokenizer_class": "RobertaTokenizer",
|
56 |
+
"trim_offsets": true,
|
57 |
+
"unk_token": "<unk>"
|
58 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a480c3af41f9b12b089d334e262bff9421034de828536b4d114d022aa51a3915
|
3 |
+
size 5112
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|