End of training
Browse files- README.md +79 -0
- config.json +69 -0
- model.safetensors +3 -0
- runs/Jun02_16-16-42_50a0327f41e4/events.out.tfevents.1717345003.50a0327f41e4.22857.0 +3 -0
- special_tokens_map.json +37 -0
- tokenizer.json +0 -0
- tokenizer_config.json +57 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: dccuchile/bert-base-spanish-wwm-cased
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
metrics:
|
6 |
+
- precision
|
7 |
+
- recall
|
8 |
+
- f1
|
9 |
+
- accuracy
|
10 |
+
model-index:
|
11 |
+
- name: bert-base-spanish-wwm-cased-ner
|
12 |
+
results: []
|
13 |
+
---
|
14 |
+
|
15 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
16 |
+
should probably proofread and complete it, then remove this comment. -->
|
17 |
+
|
18 |
+
# bert-base-spanish-wwm-cased-ner
|
19 |
+
|
20 |
+
This model is a fine-tuned version of [dccuchile/bert-base-spanish-wwm-cased](https://huggingface.co/dccuchile/bert-base-spanish-wwm-cased) on the None dataset.
|
21 |
+
It achieves the following results on the evaluation set:
|
22 |
+
- Loss: 0.3695
|
23 |
+
- Precision: 0.8640
|
24 |
+
- Recall: 0.9126
|
25 |
+
- F1: 0.8876
|
26 |
+
- Accuracy: 0.9378
|
27 |
+
|
28 |
+
## Model description
|
29 |
+
|
30 |
+
More information needed
|
31 |
+
|
32 |
+
## Intended uses & limitations
|
33 |
+
|
34 |
+
More information needed
|
35 |
+
|
36 |
+
## Training and evaluation data
|
37 |
+
|
38 |
+
More information needed
|
39 |
+
|
40 |
+
## Training procedure
|
41 |
+
|
42 |
+
### Training hyperparameters
|
43 |
+
|
44 |
+
The following hyperparameters were used during training:
|
45 |
+
- learning_rate: 2e-05
|
46 |
+
- train_batch_size: 8
|
47 |
+
- eval_batch_size: 8
|
48 |
+
- seed: 42
|
49 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
50 |
+
- lr_scheduler_type: linear
|
51 |
+
- num_epochs: 15
|
52 |
+
|
53 |
+
### Training results
|
54 |
+
|
55 |
+
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|
56 |
+
|:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
|
57 |
+
| No log | 1.0 | 280 | 0.3016 | 0.7779 | 0.8252 | 0.8009 | 0.9052 |
|
58 |
+
| 0.4113 | 2.0 | 560 | 0.2671 | 0.8150 | 0.8681 | 0.8407 | 0.9248 |
|
59 |
+
| 0.4113 | 3.0 | 840 | 0.2747 | 0.8181 | 0.8593 | 0.8382 | 0.9268 |
|
60 |
+
| 0.1179 | 4.0 | 1120 | 0.2875 | 0.8336 | 0.8978 | 0.8645 | 0.9312 |
|
61 |
+
| 0.1179 | 5.0 | 1400 | 0.3087 | 0.8529 | 0.9022 | 0.8769 | 0.9361 |
|
62 |
+
| 0.0608 | 6.0 | 1680 | 0.3449 | 0.8645 | 0.8978 | 0.8808 | 0.9351 |
|
63 |
+
| 0.0608 | 7.0 | 1960 | 0.3478 | 0.8539 | 0.8919 | 0.8725 | 0.9337 |
|
64 |
+
| 0.0306 | 8.0 | 2240 | 0.3495 | 0.8426 | 0.8963 | 0.8686 | 0.9337 |
|
65 |
+
| 0.0231 | 9.0 | 2520 | 0.3812 | 0.8660 | 0.9096 | 0.8873 | 0.9366 |
|
66 |
+
| 0.0231 | 10.0 | 2800 | 0.3346 | 0.8473 | 0.8963 | 0.8711 | 0.9386 |
|
67 |
+
| 0.0174 | 11.0 | 3080 | 0.3721 | 0.8583 | 0.9067 | 0.8818 | 0.9373 |
|
68 |
+
| 0.0174 | 12.0 | 3360 | 0.3778 | 0.8632 | 0.9067 | 0.8844 | 0.9371 |
|
69 |
+
| 0.014 | 13.0 | 3640 | 0.3733 | 0.8624 | 0.9096 | 0.8854 | 0.9366 |
|
70 |
+
| 0.014 | 14.0 | 3920 | 0.3709 | 0.8652 | 0.9126 | 0.8882 | 0.9398 |
|
71 |
+
| 0.013 | 15.0 | 4200 | 0.3695 | 0.8640 | 0.9126 | 0.8876 | 0.9378 |
|
72 |
+
|
73 |
+
|
74 |
+
### Framework versions
|
75 |
+
|
76 |
+
- Transformers 4.41.1
|
77 |
+
- Pytorch 2.3.0+cu121
|
78 |
+
- Datasets 2.19.1
|
79 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "dccuchile/bert-base-spanish-wwm-cased",
|
3 |
+
"architectures": [
|
4 |
+
"BertForTokenClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"gradient_checkpointing": false,
|
9 |
+
"hidden_act": "gelu",
|
10 |
+
"hidden_dropout_prob": 0.1,
|
11 |
+
"hidden_size": 768,
|
12 |
+
"id2label": {
|
13 |
+
"0": "O",
|
14 |
+
"1": "B-Anatomical_Entity",
|
15 |
+
"10": "I-Location",
|
16 |
+
"11": "B-Type_of_measure",
|
17 |
+
"12": "I-Type_of_measure",
|
18 |
+
"13": "B-Measure",
|
19 |
+
"14": "I-Measure",
|
20 |
+
"15": "B-Degree",
|
21 |
+
"16": "I-Degree",
|
22 |
+
"17": "B-ConditionalTemporal",
|
23 |
+
"18": "I-ConditionalTemporal",
|
24 |
+
"2": "I-Anatomical_Entity",
|
25 |
+
"3": "B-Finding",
|
26 |
+
"4": "I-Finding",
|
27 |
+
"5": "B-Uncertainty",
|
28 |
+
"6": "I-Uncertainty",
|
29 |
+
"7": "B-Negation",
|
30 |
+
"8": "I-Negation",
|
31 |
+
"9": "B-Location"
|
32 |
+
},
|
33 |
+
"initializer_range": 0.02,
|
34 |
+
"intermediate_size": 3072,
|
35 |
+
"label2id": {
|
36 |
+
"B-Anatomical_Entity": "1",
|
37 |
+
"B-ConditionalTemporal": "17",
|
38 |
+
"B-Degree": "15",
|
39 |
+
"B-Finding": "3",
|
40 |
+
"B-Location": "9",
|
41 |
+
"B-Measure": "13",
|
42 |
+
"B-Negation": "7",
|
43 |
+
"B-Type_of_measure": "11",
|
44 |
+
"B-Uncertainty": "5",
|
45 |
+
"I-Anatomical_Entity": "2",
|
46 |
+
"I-ConditionalTemporal": "18",
|
47 |
+
"I-Degree": "16",
|
48 |
+
"I-Finding": "4",
|
49 |
+
"I-Location": "10",
|
50 |
+
"I-Measure": "14",
|
51 |
+
"I-Negation": "8",
|
52 |
+
"I-Type_of_measure": "12",
|
53 |
+
"I-Uncertainty": "6",
|
54 |
+
"O": "0"
|
55 |
+
},
|
56 |
+
"layer_norm_eps": 1e-12,
|
57 |
+
"max_position_embeddings": 512,
|
58 |
+
"model_type": "bert",
|
59 |
+
"num_attention_heads": 12,
|
60 |
+
"num_hidden_layers": 12,
|
61 |
+
"output_past": true,
|
62 |
+
"pad_token_id": 1,
|
63 |
+
"position_embedding_type": "absolute",
|
64 |
+
"torch_dtype": "float32",
|
65 |
+
"transformers_version": "4.41.1",
|
66 |
+
"type_vocab_size": 2,
|
67 |
+
"use_cache": true,
|
68 |
+
"vocab_size": 31002
|
69 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8a64b94cf69f90be4ce90d441fb003d43cecda511656720ca1dd4293f743ce58
|
3 |
+
size 437122940
|
runs/Jun02_16-16-42_50a0327f41e4/events.out.tfevents.1717345003.50a0327f41e4.22857.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:25d8d5ff36b002ac79a1c2314207f012fa3d03bc3435e1d8b148c681bd0fe05d
|
3 |
+
size 15030
|
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,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"0": {
|
4 |
+
"content": "[MASK]",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false,
|
9 |
+
"special": true
|
10 |
+
},
|
11 |
+
"1": {
|
12 |
+
"content": "[PAD]",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"3": {
|
20 |
+
"content": "[UNK]",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
},
|
27 |
+
"4": {
|
28 |
+
"content": "[CLS]",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false,
|
33 |
+
"special": true
|
34 |
+
},
|
35 |
+
"5": {
|
36 |
+
"content": "[SEP]",
|
37 |
+
"lstrip": false,
|
38 |
+
"normalized": false,
|
39 |
+
"rstrip": false,
|
40 |
+
"single_word": false,
|
41 |
+
"special": true
|
42 |
+
}
|
43 |
+
},
|
44 |
+
"clean_up_tokenization_spaces": true,
|
45 |
+
"cls_token": "[CLS]",
|
46 |
+
"do_basic_tokenize": true,
|
47 |
+
"do_lower_case": false,
|
48 |
+
"mask_token": "[MASK]",
|
49 |
+
"model_max_length": 512,
|
50 |
+
"never_split": null,
|
51 |
+
"pad_token": "[PAD]",
|
52 |
+
"sep_token": "[SEP]",
|
53 |
+
"strip_accents": false,
|
54 |
+
"tokenize_chinese_chars": true,
|
55 |
+
"tokenizer_class": "BertTokenizer",
|
56 |
+
"unk_token": "[UNK]"
|
57 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9e8521ad117e9c68e71ce26ea61bd0197a5f3d8585f5dfe22895c6e414ea793c
|
3 |
+
size 5112
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|