End of training
Browse files- README.md +79 -0
- config.json +69 -0
- model.safetensors +3 -0
- runs/Jun02_17-55-33_167d16a24718/events.out.tfevents.1717350934.167d16a24718.192.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-uncased
|
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-uncased-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-uncased-ner
|
19 |
+
|
20 |
+
This model is a fine-tuned version of [dccuchile/bert-base-spanish-wwm-uncased](https://huggingface.co/dccuchile/bert-base-spanish-wwm-uncased) on the None dataset.
|
21 |
+
It achieves the following results on the evaluation set:
|
22 |
+
- Loss: 0.3905
|
23 |
+
- Precision: 0.8768
|
24 |
+
- Recall: 0.9067
|
25 |
+
- F1: 0.8915
|
26 |
+
- Accuracy: 0.9376
|
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.2690 | 0.8236 | 0.8578 | 0.8403 | 0.9268 |
|
58 |
+
| 0.3996 | 2.0 | 560 | 0.2917 | 0.8116 | 0.8681 | 0.8389 | 0.9180 |
|
59 |
+
| 0.3996 | 3.0 | 840 | 0.2715 | 0.8495 | 0.8696 | 0.8594 | 0.9319 |
|
60 |
+
| 0.118 | 4.0 | 1120 | 0.2914 | 0.8567 | 0.9037 | 0.8796 | 0.9370 |
|
61 |
+
| 0.118 | 5.0 | 1400 | 0.3040 | 0.8454 | 0.8993 | 0.8715 | 0.9330 |
|
62 |
+
| 0.0608 | 6.0 | 1680 | 0.2979 | 0.8631 | 0.8963 | 0.8794 | 0.9359 |
|
63 |
+
| 0.0608 | 7.0 | 1960 | 0.3376 | 0.8653 | 0.8948 | 0.8798 | 0.9322 |
|
64 |
+
| 0.0353 | 8.0 | 2240 | 0.3283 | 0.8622 | 0.9081 | 0.8846 | 0.9370 |
|
65 |
+
| 0.0236 | 9.0 | 2520 | 0.3584 | 0.8575 | 0.9007 | 0.8786 | 0.9351 |
|
66 |
+
| 0.0236 | 10.0 | 2800 | 0.3891 | 0.8813 | 0.9022 | 0.8917 | 0.9346 |
|
67 |
+
| 0.0155 | 11.0 | 3080 | 0.3678 | 0.8764 | 0.9037 | 0.8899 | 0.9381 |
|
68 |
+
| 0.0155 | 12.0 | 3360 | 0.3736 | 0.8759 | 0.9096 | 0.8924 | 0.9386 |
|
69 |
+
| 0.0123 | 13.0 | 3640 | 0.4030 | 0.8721 | 0.8993 | 0.8855 | 0.9349 |
|
70 |
+
| 0.0123 | 14.0 | 3920 | 0.3890 | 0.8768 | 0.9067 | 0.8915 | 0.9373 |
|
71 |
+
| 0.0123 | 15.0 | 4200 | 0.3905 | 0.8768 | 0.9067 | 0.8915 | 0.9376 |
|
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-uncased",
|
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:e5ae4618febaa36dd819343474480858fc20f82c777d63aebfee4aec8c17dc29
|
3 |
+
size 437122940
|
runs/Jun02_17-55-33_167d16a24718/events.out.tfevents.1717350934.167d16a24718.192.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1ec2c61eb8199ceb40ade6ef4b18fc1f779f0c2d1baee84aa310ba77d59f7246
|
3 |
+
size 15038
|
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": true,
|
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:1fb7075eb9c7a8ca92c90d295324e22212c4ebef37fe62ce329651ed2404ce33
|
3 |
+
size 5176
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|