syubraj commited on
Commit
52cde40
·
verified ·
1 Parent(s): 140a8b2

syubraj/espanyol_bert_based_ner

Browse files
README.md ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: bert-base-multilingual-cased
5
+ tags:
6
+ - generated_from_trainer
7
+ model-index:
8
+ - name: fine_tune_bert_output
9
+ results: []
10
+ ---
11
+
12
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
13
+ should probably proofread and complete it, then remove this comment. -->
14
+
15
+ # fine_tune_bert_output
16
+
17
+ This model is a fine-tuned version of [bert-base-multilingual-cased](https://huggingface.co/bert-base-multilingual-cased) on an unknown dataset.
18
+ It achieves the following results on the evaluation set:
19
+ - Loss: 0.3320
20
+ - Overall Precision: 0.9051
21
+ - Overall Recall: 0.9121
22
+ - Overall F1: 0.9086
23
+ - Overall Accuracy: 0.9577
24
+ - Loc F1: 0.9190
25
+ - Org F1: 0.8663
26
+ - Per F1: 0.9367
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: 16
47
+ - eval_batch_size: 16
48
+ - seed: 42
49
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
50
+ - lr_scheduler_type: linear
51
+ - num_epochs: 10
52
+
53
+ ### Training results
54
+
55
+ | Training Loss | Epoch | Step | Validation Loss | Overall Precision | Overall Recall | Overall F1 | Overall Accuracy | Loc F1 | Org F1 | Per F1 |
56
+ |:-------------:|:-----:|:-----:|:---------------:|:-----------------:|:--------------:|:----------:|:----------------:|:------:|:------:|:------:|
57
+ | 0.2713 | 0.8 | 1000 | 0.2236 | 0.8498 | 0.8672 | 0.8584 | 0.9401 | 0.8834 | 0.8019 | 0.8790 |
58
+ | 0.1537 | 1.6 | 2000 | 0.1909 | 0.8772 | 0.8943 | 0.8857 | 0.9495 | 0.9002 | 0.8369 | 0.9164 |
59
+ | 0.1152 | 2.4 | 3000 | 0.2095 | 0.8848 | 0.8981 | 0.8914 | 0.9523 | 0.9039 | 0.8432 | 0.9220 |
60
+ | 0.0889 | 3.2 | 4000 | 0.2223 | 0.8978 | 0.8998 | 0.8988 | 0.9546 | 0.9080 | 0.8569 | 0.9290 |
61
+ | 0.0701 | 4.0 | 5000 | 0.2152 | 0.8937 | 0.9042 | 0.8989 | 0.9544 | 0.9113 | 0.8565 | 0.9246 |
62
+ | 0.0457 | 4.8 | 6000 | 0.2365 | 0.9017 | 0.9069 | 0.9043 | 0.9563 | 0.9164 | 0.8616 | 0.9310 |
63
+ | 0.0364 | 5.6 | 7000 | 0.2622 | 0.9037 | 0.9086 | 0.9061 | 0.9578 | 0.9148 | 0.8639 | 0.9365 |
64
+ | 0.026 | 6.4 | 8000 | 0.2916 | 0.9037 | 0.9159 | 0.9097 | 0.9585 | 0.9183 | 0.8712 | 0.9366 |
65
+ | 0.0215 | 7.2 | 9000 | 0.2985 | 0.9022 | 0.9128 | 0.9074 | 0.9565 | 0.9178 | 0.8676 | 0.9323 |
66
+ | 0.0134 | 8.0 | 10000 | 0.3071 | 0.904 | 0.9131 | 0.9085 | 0.9574 | 0.9198 | 0.8671 | 0.9344 |
67
+ | 0.0091 | 8.8 | 11000 | 0.3335 | 0.9056 | 0.9115 | 0.9085 | 0.9573 | 0.9175 | 0.8670 | 0.9373 |
68
+ | 0.0074 | 9.6 | 12000 | 0.3320 | 0.9051 | 0.9121 | 0.9086 | 0.9577 | 0.9190 | 0.8663 | 0.9367 |
69
+
70
+
71
+ ### Framework versions
72
+
73
+ - Transformers 4.44.2
74
+ - Pytorch 2.4.1+cu121
75
+ - Datasets 3.2.0
76
+ - Tokenizers 0.19.1
config.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "bert-base-multilingual-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
+ },
21
+ "initializer_range": 0.02,
22
+ "intermediate_size": 3072,
23
+ "label2id": {
24
+ "LABEL_0": 0,
25
+ "LABEL_1": 1,
26
+ "LABEL_2": 2,
27
+ "LABEL_3": 3,
28
+ "LABEL_4": 4,
29
+ "LABEL_5": 5,
30
+ "LABEL_6": 6
31
+ },
32
+ "layer_norm_eps": 1e-12,
33
+ "max_position_embeddings": 512,
34
+ "model_type": "bert",
35
+ "num_attention_heads": 12,
36
+ "num_hidden_layers": 12,
37
+ "pad_token_id": 0,
38
+ "pooler_fc_size": 768,
39
+ "pooler_num_attention_heads": 12,
40
+ "pooler_num_fc_layers": 3,
41
+ "pooler_size_per_head": 128,
42
+ "pooler_type": "first_token_transform",
43
+ "position_embedding_type": "absolute",
44
+ "torch_dtype": "float32",
45
+ "transformers_version": "4.44.2",
46
+ "type_vocab_size": 2,
47
+ "use_cache": true,
48
+ "vocab_size": 119547
49
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8760bc02c4f3d72b7d8e4a6f2091dbef75086c765584b859b58e37562131a699
3
+ size 709096284
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,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_lower_case": false,
47
+ "mask_token": "[MASK]",
48
+ "model_max_length": 512,
49
+ "pad_token": "[PAD]",
50
+ "sep_token": "[SEP]",
51
+ "strip_accents": null,
52
+ "tokenize_chinese_chars": true,
53
+ "tokenizer_class": "BertTokenizer",
54
+ "unk_token": "[UNK]"
55
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4792ed0f8576f2abb4c31d6e9c96da8fd870970b4825c9d4121b0ce4207f99e8
3
+ size 5240
vocab.txt ADDED
The diff for this file is too large to render. See raw diff