begnini commited on
Commit
9b36d49
1 Parent(s): 5d47d68

contratos_tceal

Browse files
README.md ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: pierreguillou/ner-bert-large-cased-pt-lenerbr
3
+ tags:
4
+ - generated_from_trainer
5
+ datasets:
6
+ - contratos_tceal
7
+ metrics:
8
+ - precision
9
+ - recall
10
+ - f1
11
+ - accuracy
12
+ model-index:
13
+ - name: ner-bert-large-cased-pt-lenerbr-finetuned-ner
14
+ results:
15
+ - task:
16
+ name: Token Classification
17
+ type: token-classification
18
+ dataset:
19
+ name: contratos_tceal
20
+ type: contratos_tceal
21
+ config: contratos_tceal
22
+ split: validation
23
+ args: contratos_tceal
24
+ metrics:
25
+ - name: Precision
26
+ type: precision
27
+ value: 0.7549019607843137
28
+ - name: Recall
29
+ type: recall
30
+ value: 0.8115313081215128
31
+ - name: F1
32
+ type: f1
33
+ value: 0.7821930086644756
34
+ - name: Accuracy
35
+ type: accuracy
36
+ value: 0.883160638230246
37
+ ---
38
+
39
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
40
+ should probably proofread and complete it, then remove this comment. -->
41
+
42
+ # ner-bert-large-cased-pt-lenerbr-finetuned-ner
43
+
44
+ This model is a fine-tuned version of [pierreguillou/ner-bert-large-cased-pt-lenerbr](https://huggingface.co/pierreguillou/ner-bert-large-cased-pt-lenerbr) on the contratos_tceal dataset.
45
+ It achieves the following results on the evaluation set:
46
+ - Loss: nan
47
+ - Precision: 0.7549
48
+ - Recall: 0.8115
49
+ - F1: 0.7822
50
+ - Accuracy: 0.8832
51
+
52
+ ## Model description
53
+
54
+ More information needed
55
+
56
+ ## Intended uses & limitations
57
+
58
+ More information needed
59
+
60
+ ## Training and evaluation data
61
+
62
+ More information needed
63
+
64
+ ## Training procedure
65
+
66
+ ### Training hyperparameters
67
+
68
+ The following hyperparameters were used during training:
69
+ - learning_rate: 2e-05
70
+ - train_batch_size: 4
71
+ - eval_batch_size: 4
72
+ - seed: 42
73
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
74
+ - lr_scheduler_type: linear
75
+ - num_epochs: 10
76
+
77
+ ### Training results
78
+
79
+ | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
80
+ |:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
81
+ | No log | 1.0 | 91 | nan | 0.6987 | 0.7433 | 0.7203 | 0.8620 |
82
+ | No log | 2.0 | 182 | nan | 0.7040 | 0.7564 | 0.7292 | 0.8624 |
83
+ | No log | 3.0 | 273 | nan | 0.7317 | 0.7929 | 0.7611 | 0.8731 |
84
+ | No log | 4.0 | 364 | nan | 0.7501 | 0.8097 | 0.7788 | 0.8838 |
85
+ | No log | 5.0 | 455 | nan | 0.7504 | 0.8332 | 0.7897 | 0.8857 |
86
+ | 0.3495 | 6.0 | 546 | nan | 0.7551 | 0.8103 | 0.7817 | 0.8799 |
87
+ | 0.3495 | 7.0 | 637 | nan | 0.7533 | 0.8215 | 0.7859 | 0.8824 |
88
+ | 0.3495 | 8.0 | 728 | nan | 0.7578 | 0.7991 | 0.7779 | 0.8785 |
89
+ | 0.3495 | 9.0 | 819 | nan | 0.7520 | 0.8196 | 0.7843 | 0.8840 |
90
+ | 0.3495 | 10.0 | 910 | nan | 0.7549 | 0.8115 | 0.7822 | 0.8832 |
91
+
92
+
93
+ ### Framework versions
94
+
95
+ - Transformers 4.36.0
96
+ - Pytorch 2.1.0+cu118
97
+ - Datasets 2.15.0
98
+ - Tokenizers 0.15.0
config.json ADDED
@@ -0,0 +1,234 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "pierreguillou/ner-bert-large-cased-pt-lenerbr",
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": 1024,
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
+ "35": "LABEL_35",
49
+ "36": "LABEL_36",
50
+ "37": "LABEL_37",
51
+ "38": "LABEL_38",
52
+ "39": "LABEL_39",
53
+ "40": "LABEL_40",
54
+ "41": "LABEL_41",
55
+ "42": "LABEL_42",
56
+ "43": "LABEL_43",
57
+ "44": "LABEL_44",
58
+ "45": "LABEL_45",
59
+ "46": "LABEL_46",
60
+ "47": "LABEL_47",
61
+ "48": "LABEL_48",
62
+ "49": "LABEL_49",
63
+ "50": "LABEL_50",
64
+ "51": "LABEL_51",
65
+ "52": "LABEL_52",
66
+ "53": "LABEL_53",
67
+ "54": "LABEL_54",
68
+ "55": "LABEL_55",
69
+ "56": "LABEL_56",
70
+ "57": "LABEL_57",
71
+ "58": "LABEL_58",
72
+ "59": "LABEL_59",
73
+ "60": "LABEL_60",
74
+ "61": "LABEL_61",
75
+ "62": "LABEL_62",
76
+ "63": "LABEL_63",
77
+ "64": "LABEL_64",
78
+ "65": "LABEL_65",
79
+ "66": "LABEL_66",
80
+ "67": "LABEL_67",
81
+ "68": "LABEL_68",
82
+ "69": "LABEL_69",
83
+ "70": "LABEL_70",
84
+ "71": "LABEL_71",
85
+ "72": "LABEL_72",
86
+ "73": "LABEL_73",
87
+ "74": "LABEL_74",
88
+ "75": "LABEL_75",
89
+ "76": "LABEL_76",
90
+ "77": "LABEL_77",
91
+ "78": "LABEL_78",
92
+ "79": "LABEL_79",
93
+ "80": "LABEL_80",
94
+ "81": "LABEL_81",
95
+ "82": "LABEL_82",
96
+ "83": "LABEL_83",
97
+ "84": "LABEL_84",
98
+ "85": "LABEL_85",
99
+ "86": "LABEL_86",
100
+ "87": "LABEL_87",
101
+ "88": "LABEL_88",
102
+ "89": "LABEL_89",
103
+ "90": "LABEL_90",
104
+ "91": "LABEL_91",
105
+ "92": "LABEL_92",
106
+ "93": "LABEL_93",
107
+ "94": "LABEL_94",
108
+ "95": "LABEL_95",
109
+ "96": "LABEL_96",
110
+ "97": "LABEL_97",
111
+ "98": "LABEL_98"
112
+ },
113
+ "initializer_range": 0.02,
114
+ "intermediate_size": 4096,
115
+ "label2id": {
116
+ "LABEL_0": 0,
117
+ "LABEL_1": 1,
118
+ "LABEL_10": 10,
119
+ "LABEL_11": 11,
120
+ "LABEL_12": 12,
121
+ "LABEL_13": 13,
122
+ "LABEL_14": 14,
123
+ "LABEL_15": 15,
124
+ "LABEL_16": 16,
125
+ "LABEL_17": 17,
126
+ "LABEL_18": 18,
127
+ "LABEL_19": 19,
128
+ "LABEL_2": 2,
129
+ "LABEL_20": 20,
130
+ "LABEL_21": 21,
131
+ "LABEL_22": 22,
132
+ "LABEL_23": 23,
133
+ "LABEL_24": 24,
134
+ "LABEL_25": 25,
135
+ "LABEL_26": 26,
136
+ "LABEL_27": 27,
137
+ "LABEL_28": 28,
138
+ "LABEL_29": 29,
139
+ "LABEL_3": 3,
140
+ "LABEL_30": 30,
141
+ "LABEL_31": 31,
142
+ "LABEL_32": 32,
143
+ "LABEL_33": 33,
144
+ "LABEL_34": 34,
145
+ "LABEL_35": 35,
146
+ "LABEL_36": 36,
147
+ "LABEL_37": 37,
148
+ "LABEL_38": 38,
149
+ "LABEL_39": 39,
150
+ "LABEL_4": 4,
151
+ "LABEL_40": 40,
152
+ "LABEL_41": 41,
153
+ "LABEL_42": 42,
154
+ "LABEL_43": 43,
155
+ "LABEL_44": 44,
156
+ "LABEL_45": 45,
157
+ "LABEL_46": 46,
158
+ "LABEL_47": 47,
159
+ "LABEL_48": 48,
160
+ "LABEL_49": 49,
161
+ "LABEL_5": 5,
162
+ "LABEL_50": 50,
163
+ "LABEL_51": 51,
164
+ "LABEL_52": 52,
165
+ "LABEL_53": 53,
166
+ "LABEL_54": 54,
167
+ "LABEL_55": 55,
168
+ "LABEL_56": 56,
169
+ "LABEL_57": 57,
170
+ "LABEL_58": 58,
171
+ "LABEL_59": 59,
172
+ "LABEL_6": 6,
173
+ "LABEL_60": 60,
174
+ "LABEL_61": 61,
175
+ "LABEL_62": 62,
176
+ "LABEL_63": 63,
177
+ "LABEL_64": 64,
178
+ "LABEL_65": 65,
179
+ "LABEL_66": 66,
180
+ "LABEL_67": 67,
181
+ "LABEL_68": 68,
182
+ "LABEL_69": 69,
183
+ "LABEL_7": 7,
184
+ "LABEL_70": 70,
185
+ "LABEL_71": 71,
186
+ "LABEL_72": 72,
187
+ "LABEL_73": 73,
188
+ "LABEL_74": 74,
189
+ "LABEL_75": 75,
190
+ "LABEL_76": 76,
191
+ "LABEL_77": 77,
192
+ "LABEL_78": 78,
193
+ "LABEL_79": 79,
194
+ "LABEL_8": 8,
195
+ "LABEL_80": 80,
196
+ "LABEL_81": 81,
197
+ "LABEL_82": 82,
198
+ "LABEL_83": 83,
199
+ "LABEL_84": 84,
200
+ "LABEL_85": 85,
201
+ "LABEL_86": 86,
202
+ "LABEL_87": 87,
203
+ "LABEL_88": 88,
204
+ "LABEL_89": 89,
205
+ "LABEL_9": 9,
206
+ "LABEL_90": 90,
207
+ "LABEL_91": 91,
208
+ "LABEL_92": 92,
209
+ "LABEL_93": 93,
210
+ "LABEL_94": 94,
211
+ "LABEL_95": 95,
212
+ "LABEL_96": 96,
213
+ "LABEL_97": 97,
214
+ "LABEL_98": 98
215
+ },
216
+ "layer_norm_eps": 1e-12,
217
+ "max_position_embeddings": 512,
218
+ "model_type": "bert",
219
+ "num_attention_heads": 16,
220
+ "num_hidden_layers": 24,
221
+ "output_past": true,
222
+ "pad_token_id": 0,
223
+ "pooler_fc_size": 768,
224
+ "pooler_num_attention_heads": 12,
225
+ "pooler_num_fc_layers": 3,
226
+ "pooler_size_per_head": 128,
227
+ "pooler_type": "first_token_transform",
228
+ "position_embedding_type": "absolute",
229
+ "torch_dtype": "float32",
230
+ "transformers_version": "4.36.0",
231
+ "type_vocab_size": 2,
232
+ "use_cache": true,
233
+ "vocab_size": 29794
234
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cd8eb0d93db59932c21051428e13e7a61ef3304dce98f746fbcaa41652f71de0
3
+ size 1333839980
runs/Dec11_20-41-25_9de398ea4bc6/events.out.tfevents.1702327353.9de398ea4bc6.2334.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a3a49a3c2c64787779d2d17969a52c416e1ced17d2a8342c34ccad2f04a0b88a
3
+ size 8835
runs/Dec11_20-43-05_9de398ea4bc6/events.out.tfevents.1702327416.9de398ea4bc6.2334.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b8f58db17b2d28735d300555eff25c4cd65e2fd888f02ef89579bcb0eaf4fbc4
3
+ size 10596
runs/Dec11_20-43-05_9de398ea4bc6/events.out.tfevents.1702327526.9de398ea4bc6.2334.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fd9757013939697049dbadf921d376d634ec10518557eee514e08fb68db5781a
3
+ size 560
runs/Dec11_20-52-24_9de398ea4bc6/events.out.tfevents.1702327977.9de398ea4bc6.2334.3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ab4f7c3aab7bdada91eb594d53a8f27810c6d1ccf437b094ec951a773825315b
3
+ size 14058
runs/Dec11_20-52-24_9de398ea4bc6/events.out.tfevents.1702328361.9de398ea4bc6.2334.4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b3ac8673f0ee6bf96b8fa3d604d15f9b55dc4b99a90abd1983a9fcb028246dd5
3
+ size 14530
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,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "max_length": 512,
50
+ "model_max_length": 1000000000000000019884624838656,
51
+ "never_split": null,
52
+ "pad_token": "[PAD]",
53
+ "sep_token": "[SEP]",
54
+ "stride": 0,
55
+ "strip_accents": null,
56
+ "tokenize_chinese_chars": true,
57
+ "tokenizer_class": "BertTokenizer",
58
+ "truncation_side": "right",
59
+ "truncation_strategy": "longest_first",
60
+ "unk_token": "[UNK]"
61
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c169d3878960074fc211a7c9735100bfc0a0dcbed1feef710c368224e7b35f65
3
+ size 4728
vocab.txt ADDED
The diff for this file is too large to render. See raw diff