lfcc commited on
Commit
db87061
1 Parent(s): 897aad1

lfcc/bert-base-pt-archive

Browse files
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ checkpoint-*/
README.md ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ tags:
4
+ - generated_from_trainer
5
+ metrics:
6
+ - precision
7
+ - recall
8
+ - f1
9
+ - accuracy
10
+ model_index:
11
+ - name: bert-base-pt-archive
12
+ results:
13
+ - task:
14
+ name: Token Classification
15
+ type: token-classification
16
+ metric:
17
+ name: Accuracy
18
+ type: accuracy
19
+ value: 0.9700325118974698
20
+ ---
21
+
22
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
23
+ should probably proofread and complete it, then remove this comment. -->
24
+
25
+ # bert-base-pt-archive
26
+
27
+ This model is a fine-tuned version of [neuralmind/bert-base-portuguese-cased](https://huggingface.co/neuralmind/bert-base-portuguese-cased) on an unkown dataset.
28
+ It achieves the following results on the evaluation set:
29
+ - Loss: 0.1140
30
+ - Precision: 0.9147
31
+ - Recall: 0.9483
32
+ - F1: 0.9312
33
+ - Accuracy: 0.9700
34
+
35
+ ## Model description
36
+
37
+ More information needed
38
+
39
+ ## Intended uses & limitations
40
+
41
+ More information needed
42
+
43
+ ## Training and evaluation data
44
+
45
+ More information needed
46
+
47
+ ## Training procedure
48
+
49
+ ### Training hyperparameters
50
+
51
+ The following hyperparameters were used during training:
52
+ - learning_rate: 2e-05
53
+ - train_batch_size: 16
54
+ - eval_batch_size: 16
55
+ - seed: 42
56
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
57
+ - lr_scheduler_type: linear
58
+ - num_epochs: 4
59
+
60
+ ### Training results
61
+
62
+ | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
63
+ |:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
64
+ | No log | 1.0 | 192 | 0.1438 | 0.8917 | 0.9392 | 0.9148 | 0.9633 |
65
+ | 0.2454 | 2.0 | 384 | 0.1222 | 0.8985 | 0.9417 | 0.9196 | 0.9671 |
66
+ | 0.0526 | 3.0 | 576 | 0.1098 | 0.9150 | 0.9481 | 0.9312 | 0.9698 |
67
+ | 0.0372 | 4.0 | 768 | 0.1140 | 0.9147 | 0.9483 | 0.9312 | 0.9700 |
68
+
69
+
70
+ ### Framework versions
71
+
72
+ - Transformers 4.10.0.dev0
73
+ - Pytorch 1.9.0+cu111
74
+ - Datasets 1.10.2
75
+ - Tokenizers 0.10.3
config.json ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "gradient_checkpointing": false,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "id2label": {
14
+ "0": "O",
15
+ "1": "B-Organizacao",
16
+ "2": "I-Local",
17
+ "3": "B-Local",
18
+ "4": "B-Pessoa",
19
+ "5": "I-Profissao",
20
+ "6": "B-Profissao",
21
+ "7": "B-Data",
22
+ "8": "I-Data",
23
+ "9": "I-Pessoa",
24
+ "10": "I-Organizacao"
25
+ },
26
+ "initializer_range": 0.02,
27
+ "intermediate_size": 3072,
28
+ "label2id": {
29
+ "B-Data": 7,
30
+ "B-Local": 3,
31
+ "B-Organizacao": 1,
32
+ "B-Pessoa": 4,
33
+ "B-Profissao": 6,
34
+ "I-Data": 8,
35
+ "I-Local": 2,
36
+ "I-Organizacao": 10,
37
+ "I-Pessoa": 9,
38
+ "I-Profissao": 5,
39
+ "O": 0
40
+ },
41
+ "layer_norm_eps": 1e-12,
42
+ "max_position_embeddings": 512,
43
+ "model_type": "bert",
44
+ "num_attention_heads": 12,
45
+ "num_hidden_layers": 12,
46
+ "output_past": true,
47
+ "pad_token_id": 0,
48
+ "pooler_fc_size": 768,
49
+ "pooler_num_attention_heads": 12,
50
+ "pooler_num_fc_layers": 3,
51
+ "pooler_size_per_head": 128,
52
+ "pooler_type": "first_token_transform",
53
+ "position_embedding_type": "absolute",
54
+ "torch_dtype": "float32",
55
+ "transformers_version": "4.10.0.dev0",
56
+ "type_vocab_size": 2,
57
+ "use_cache": true,
58
+ "vocab_size": 29794
59
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4db77fd2e0944d4d4f78241ca7d0265f355d62c2ae72164f668934fe50320748
3
+ size 433447409
runs/Jan18_17-09-47_DESKTOP-GRC5L8E/1642526051.624885/events.out.tfevents.1642526051.DESKTOP-GRC5L8E.7444.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:04b17c4616519e11832848fdc715baf0978e1b5708b33af129489f8cfb96c7b9
3
+ size 4347
runs/Jan18_17-09-47_DESKTOP-GRC5L8E/events.out.tfevents.1642526051.DESKTOP-GRC5L8E.7444.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:47829cbffa3ed8350c13e71cf6495d7db1b5e2ab0616af5881abc7630f577c80
3
+ size 6549
special_tokens_map.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]"}
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"do_lower_case": false, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": null, "special_tokens_map_file": "C:\\Users\\Filip/.cache\\huggingface\\transformers\\eecc45187d085a1169eed91017d358cc0e9cbdd5dc236bcd710059dbf0a2f816.dd8bd9bfd3664b530ea4e645105f557769387b3da9f79bdb55ed556bdd80611d", "name_or_path": "neuralmind/bert-base-portuguese-cased", "do_basic_tokenize": true, "never_split": null, "tokenizer_class": "BertTokenizer"}
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:690bcf693caaa432b8e3305ed624e181db634da3e6892fbf0bb83ed1c531599c
3
+ size 2799
vocab.txt ADDED
The diff for this file is too large to render. See raw diff