End of training
Browse files- README.md +80 -0
- config.json +70 -0
- merges.txt +0 -0
- model.safetensors +3 -0
- runs/Jun01_14-39-50_81a51b62e932/events.out.tfevents.1717252792.81a51b62e932.18149.1 +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: BSC-LT/roberta-base-biomedical-clinical-es
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- precision
|
8 |
+
- recall
|
9 |
+
- f1
|
10 |
+
- accuracy
|
11 |
+
model-index:
|
12 |
+
- name: roberta-base-biomedical-clinical-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-base-biomedical-clinical-es-ner
|
20 |
+
|
21 |
+
This model is a fine-tuned version of [BSC-LT/roberta-base-biomedical-clinical-es](https://huggingface.co/BSC-LT/roberta-base-biomedical-clinical-es) on the None dataset.
|
22 |
+
It achieves the following results on the evaluation set:
|
23 |
+
- Loss: 0.3813
|
24 |
+
- Precision: 0.8687
|
25 |
+
- Recall: 0.8919
|
26 |
+
- F1: 0.8801
|
27 |
+
- Accuracy: 0.9374
|
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.3201 | 0.7961 | 0.8385 | 0.8167 | 0.9130 |
|
59 |
+
| 0.5051 | 2.0 | 560 | 0.2833 | 0.8245 | 0.8770 | 0.8500 | 0.9282 |
|
60 |
+
| 0.5051 | 3.0 | 840 | 0.2717 | 0.8459 | 0.8622 | 0.8540 | 0.9262 |
|
61 |
+
| 0.1434 | 4.0 | 1120 | 0.2782 | 0.8477 | 0.8904 | 0.8685 | 0.9324 |
|
62 |
+
| 0.1434 | 5.0 | 1400 | 0.3119 | 0.8525 | 0.8993 | 0.8753 | 0.9355 |
|
63 |
+
| 0.0804 | 6.0 | 1680 | 0.3146 | 0.8639 | 0.8933 | 0.8784 | 0.9366 |
|
64 |
+
| 0.0804 | 7.0 | 1960 | 0.3211 | 0.8637 | 0.8919 | 0.8776 | 0.9346 |
|
65 |
+
| 0.0475 | 8.0 | 2240 | 0.3523 | 0.8707 | 0.8978 | 0.8840 | 0.9372 |
|
66 |
+
| 0.0347 | 9.0 | 2520 | 0.3651 | 0.8434 | 0.8859 | 0.8642 | 0.9335 |
|
67 |
+
| 0.0347 | 10.0 | 2800 | 0.3663 | 0.8706 | 0.8874 | 0.8789 | 0.9360 |
|
68 |
+
| 0.0241 | 11.0 | 3080 | 0.3756 | 0.8680 | 0.8963 | 0.8819 | 0.9372 |
|
69 |
+
| 0.0241 | 12.0 | 3360 | 0.3692 | 0.86 | 0.8919 | 0.8756 | 0.9369 |
|
70 |
+
| 0.0201 | 13.0 | 3640 | 0.3782 | 0.8631 | 0.8874 | 0.8751 | 0.9360 |
|
71 |
+
| 0.0201 | 14.0 | 3920 | 0.3820 | 0.8698 | 0.8904 | 0.8799 | 0.9374 |
|
72 |
+
| 0.0172 | 15.0 | 4200 | 0.3813 | 0.8687 | 0.8919 | 0.8801 | 0.9374 |
|
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": "BSC-LT/roberta-base-biomedical-clinical-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:a315038c7511011331579f85ee98dca9b0113e750b2f678ef57763ff0df4dd1f
|
3 |
+
size 501632452
|
runs/Jun01_14-39-50_81a51b62e932/events.out.tfevents.1717252792.81a51b62e932.18149.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:da5d3ebfd916dc65b3ced29e2b32ae7636c735de812622d9bc4e9d80657ac67e
|
3 |
+
size 15084
|
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:eaf661e65ffc36a8988e51c829cb0f3333dac356e349ef36a3fce51e971ae75b
|
3 |
+
size 5176
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|