ciriatico/dodfminer_lite-ner_bertimbau-extrato_contrato
Browse files- README.md +80 -0
- config.json +106 -0
- model.safetensors +3 -0
- special_tokens_map.json +7 -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,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
license: mit
|
4 |
+
base_model: neuralmind/bert-base-portuguese-cased
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
metrics:
|
8 |
+
- precision
|
9 |
+
- recall
|
10 |
+
- f1
|
11 |
+
- accuracy
|
12 |
+
model-index:
|
13 |
+
- name: e3_lr2e-05
|
14 |
+
results: []
|
15 |
+
---
|
16 |
+
|
17 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
18 |
+
should probably proofread and complete it, then remove this comment. -->
|
19 |
+
|
20 |
+
# e3_lr2e-05
|
21 |
+
|
22 |
+
This model is a fine-tuned version of [neuralmind/bert-base-portuguese-cased](https://huggingface.co/neuralmind/bert-base-portuguese-cased) on the None dataset.
|
23 |
+
It achieves the following results on the evaluation set:
|
24 |
+
- Loss: 0.0753
|
25 |
+
- Precision: 0.9611
|
26 |
+
- Recall: 0.9778
|
27 |
+
- F1: 0.9694
|
28 |
+
- Accuracy: 0.9817
|
29 |
+
|
30 |
+
## Model description
|
31 |
+
|
32 |
+
More information needed
|
33 |
+
|
34 |
+
## Intended uses & limitations
|
35 |
+
|
36 |
+
More information needed
|
37 |
+
|
38 |
+
## Training and evaluation data
|
39 |
+
|
40 |
+
More information needed
|
41 |
+
|
42 |
+
## Training procedure
|
43 |
+
|
44 |
+
### Training hyperparameters
|
45 |
+
|
46 |
+
The following hyperparameters were used during training:
|
47 |
+
- learning_rate: 2e-05
|
48 |
+
- train_batch_size: 4
|
49 |
+
- eval_batch_size: 8
|
50 |
+
- seed: 42
|
51 |
+
- gradient_accumulation_steps: 2
|
52 |
+
- total_train_batch_size: 8
|
53 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
54 |
+
- lr_scheduler_type: linear
|
55 |
+
- num_epochs: 3
|
56 |
+
- mixed_precision_training: Native AMP
|
57 |
+
|
58 |
+
### Training results
|
59 |
+
|
60 |
+
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|
61 |
+
|:-------------:|:------:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
|
62 |
+
| 0.4195 | 0.2564 | 50 | 0.2315 | 0.8642 | 0.8460 | 0.8550 | 0.9499 |
|
63 |
+
| 0.2396 | 0.5128 | 100 | 0.1778 | 0.8971 | 0.8970 | 0.8970 | 0.9517 |
|
64 |
+
| 0.1717 | 0.7692 | 150 | 0.1330 | 0.9033 | 0.9323 | 0.9176 | 0.9639 |
|
65 |
+
| 0.1249 | 1.0256 | 200 | 0.1090 | 0.9369 | 0.9554 | 0.9460 | 0.9728 |
|
66 |
+
| 0.0929 | 1.2821 | 250 | 0.1066 | 0.9397 | 0.9630 | 0.9512 | 0.9739 |
|
67 |
+
| 0.0954 | 1.5385 | 300 | 0.0831 | 0.9498 | 0.9670 | 0.9583 | 0.9788 |
|
68 |
+
| 0.0858 | 1.7949 | 350 | 0.0844 | 0.9459 | 0.9727 | 0.9591 | 0.9776 |
|
69 |
+
| 0.0715 | 2.0513 | 400 | 0.0868 | 0.9512 | 0.9766 | 0.9637 | 0.9796 |
|
70 |
+
| 0.056 | 2.3077 | 450 | 0.0789 | 0.9616 | 0.9774 | 0.9695 | 0.9818 |
|
71 |
+
| 0.0592 | 2.5641 | 500 | 0.0768 | 0.9614 | 0.9783 | 0.9698 | 0.9817 |
|
72 |
+
| 0.0607 | 2.8205 | 550 | 0.0753 | 0.9611 | 0.9778 | 0.9694 | 0.9817 |
|
73 |
+
|
74 |
+
|
75 |
+
### Framework versions
|
76 |
+
|
77 |
+
- Transformers 4.45.0
|
78 |
+
- Pytorch 2.4.1+cu121
|
79 |
+
- Datasets 3.0.0
|
80 |
+
- Tokenizers 0.20.0
|
config.json
ADDED
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "neuralmind/bert-base-portuguese-cased",
|
3 |
+
"architectures": [
|
4 |
+
"BertForTokenClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"directionality": "bidi",
|
9 |
+
"hidden_act": "gelu",
|
10 |
+
"hidden_dropout_prob": 0.1,
|
11 |
+
"hidden_size": 768,
|
12 |
+
"id2label": {
|
13 |
+
"0": "LABEL_0",
|
14 |
+
"1": "LABEL_1",
|
15 |
+
"2": "LABEL_2",
|
16 |
+
"3": "LABEL_3",
|
17 |
+
"4": "LABEL_4",
|
18 |
+
"5": "LABEL_5",
|
19 |
+
"6": "LABEL_6",
|
20 |
+
"7": "LABEL_7",
|
21 |
+
"8": "LABEL_8",
|
22 |
+
"9": "LABEL_9",
|
23 |
+
"10": "LABEL_10",
|
24 |
+
"11": "LABEL_11",
|
25 |
+
"12": "LABEL_12",
|
26 |
+
"13": "LABEL_13",
|
27 |
+
"14": "LABEL_14",
|
28 |
+
"15": "LABEL_15",
|
29 |
+
"16": "LABEL_16",
|
30 |
+
"17": "LABEL_17",
|
31 |
+
"18": "LABEL_18",
|
32 |
+
"19": "LABEL_19",
|
33 |
+
"20": "LABEL_20",
|
34 |
+
"21": "LABEL_21",
|
35 |
+
"22": "LABEL_22",
|
36 |
+
"23": "LABEL_23",
|
37 |
+
"24": "LABEL_24",
|
38 |
+
"25": "LABEL_25",
|
39 |
+
"26": "LABEL_26",
|
40 |
+
"27": "LABEL_27",
|
41 |
+
"28": "LABEL_28",
|
42 |
+
"29": "LABEL_29",
|
43 |
+
"30": "LABEL_30",
|
44 |
+
"31": "LABEL_31",
|
45 |
+
"32": "LABEL_32",
|
46 |
+
"33": "LABEL_33",
|
47 |
+
"34": "LABEL_34"
|
48 |
+
},
|
49 |
+
"initializer_range": 0.02,
|
50 |
+
"intermediate_size": 3072,
|
51 |
+
"label2id": {
|
52 |
+
"LABEL_0": 0,
|
53 |
+
"LABEL_1": 1,
|
54 |
+
"LABEL_10": 10,
|
55 |
+
"LABEL_11": 11,
|
56 |
+
"LABEL_12": 12,
|
57 |
+
"LABEL_13": 13,
|
58 |
+
"LABEL_14": 14,
|
59 |
+
"LABEL_15": 15,
|
60 |
+
"LABEL_16": 16,
|
61 |
+
"LABEL_17": 17,
|
62 |
+
"LABEL_18": 18,
|
63 |
+
"LABEL_19": 19,
|
64 |
+
"LABEL_2": 2,
|
65 |
+
"LABEL_20": 20,
|
66 |
+
"LABEL_21": 21,
|
67 |
+
"LABEL_22": 22,
|
68 |
+
"LABEL_23": 23,
|
69 |
+
"LABEL_24": 24,
|
70 |
+
"LABEL_25": 25,
|
71 |
+
"LABEL_26": 26,
|
72 |
+
"LABEL_27": 27,
|
73 |
+
"LABEL_28": 28,
|
74 |
+
"LABEL_29": 29,
|
75 |
+
"LABEL_3": 3,
|
76 |
+
"LABEL_30": 30,
|
77 |
+
"LABEL_31": 31,
|
78 |
+
"LABEL_32": 32,
|
79 |
+
"LABEL_33": 33,
|
80 |
+
"LABEL_34": 34,
|
81 |
+
"LABEL_4": 4,
|
82 |
+
"LABEL_5": 5,
|
83 |
+
"LABEL_6": 6,
|
84 |
+
"LABEL_7": 7,
|
85 |
+
"LABEL_8": 8,
|
86 |
+
"LABEL_9": 9
|
87 |
+
},
|
88 |
+
"layer_norm_eps": 1e-12,
|
89 |
+
"max_position_embeddings": 512,
|
90 |
+
"model_type": "bert",
|
91 |
+
"num_attention_heads": 12,
|
92 |
+
"num_hidden_layers": 12,
|
93 |
+
"output_past": true,
|
94 |
+
"pad_token_id": 0,
|
95 |
+
"pooler_fc_size": 768,
|
96 |
+
"pooler_num_attention_heads": 12,
|
97 |
+
"pooler_num_fc_layers": 3,
|
98 |
+
"pooler_size_per_head": 128,
|
99 |
+
"pooler_type": "first_token_transform",
|
100 |
+
"position_embedding_type": "absolute",
|
101 |
+
"torch_dtype": "float32",
|
102 |
+
"transformers_version": "4.45.0",
|
103 |
+
"type_vocab_size": 2,
|
104 |
+
"use_cache": true,
|
105 |
+
"vocab_size": 29794
|
106 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f443226810e03ddb808b7475505cbbcdc0f516b81c675a54facdaa9deeeb3fc8
|
3 |
+
size 433461180
|
special_tokens_map.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cls_token": "[CLS]",
|
3 |
+
"mask_token": "[MASK]",
|
4 |
+
"pad_token": "[PAD]",
|
5 |
+
"sep_token": "[SEP]",
|
6 |
+
"unk_token": "[UNK]"
|
7 |
+
}
|
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": "[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": true,
|
45 |
+
"cls_token": "[CLS]",
|
46 |
+
"do_basic_tokenize": true,
|
47 |
+
"do_lower_case": false,
|
48 |
+
"mask_token": "[MASK]",
|
49 |
+
"model_max_length": 1000000000000000019884624838656,
|
50 |
+
"never_split": null,
|
51 |
+
"pad_token": "[PAD]",
|
52 |
+
"sep_token": "[SEP]",
|
53 |
+
"strip_accents": null,
|
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:c7e4ab7e8889c4de9872b14ea3f59deb258a3ff4b8a2722ff20f7b5a68f30824
|
3 |
+
size 5240
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|