Justice0893
commited on
Commit
•
3bf8640
1
Parent(s):
dec70af
End of training
Browse files- README.md +115 -0
- config.json +61 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +55 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,115 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: google-bert/bert-base-multilingual-uncased
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- precision
|
8 |
+
- recall
|
9 |
+
- f1
|
10 |
+
- accuracy
|
11 |
+
model-index:
|
12 |
+
- name: bert-multi-base-uncased-finetuned-pos-ky
|
13 |
+
results: []
|
14 |
+
---
|
15 |
+
|
16 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
17 |
+
should probably proofread and complete it, then remove this comment. -->
|
18 |
+
|
19 |
+
# bert-multi-base-uncased-finetuned-pos-ky
|
20 |
+
|
21 |
+
This model is a fine-tuned version of [google-bert/bert-base-multilingual-uncased](https://huggingface.co/google-bert/bert-base-multilingual-uncased) on the None dataset.
|
22 |
+
It achieves the following results on the evaluation set:
|
23 |
+
- Loss: 1.0007
|
24 |
+
- Precision: 0.8230
|
25 |
+
- Recall: 0.8280
|
26 |
+
- F1: 0.8255
|
27 |
+
- Accuracy: 0.8850
|
28 |
+
|
29 |
+
## Model description
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Intended uses & limitations
|
34 |
+
|
35 |
+
More information needed
|
36 |
+
|
37 |
+
## Training and evaluation data
|
38 |
+
|
39 |
+
More information needed
|
40 |
+
|
41 |
+
## Training procedure
|
42 |
+
|
43 |
+
### Training hyperparameters
|
44 |
+
|
45 |
+
The following hyperparameters were used during training:
|
46 |
+
- learning_rate: 2e-05
|
47 |
+
- train_batch_size: 16
|
48 |
+
- eval_batch_size: 16
|
49 |
+
- seed: 42
|
50 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
51 |
+
- lr_scheduler_type: linear
|
52 |
+
- num_epochs: 50
|
53 |
+
|
54 |
+
### Training results
|
55 |
+
|
56 |
+
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|
57 |
+
|:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
|
58 |
+
| No log | 1.0 | 40 | 0.6248 | 0.6903 | 0.6708 | 0.6804 | 0.8350 |
|
59 |
+
| No log | 2.0 | 80 | 0.4938 | 0.7555 | 0.7555 | 0.7555 | 0.8626 |
|
60 |
+
| No log | 3.0 | 120 | 0.4931 | 0.7939 | 0.7948 | 0.7944 | 0.8764 |
|
61 |
+
| No log | 4.0 | 160 | 0.4948 | 0.7776 | 0.8034 | 0.7903 | 0.8735 |
|
62 |
+
| No log | 5.0 | 200 | 0.4744 | 0.8102 | 0.8231 | 0.8166 | 0.8850 |
|
63 |
+
| No log | 6.0 | 240 | 0.5698 | 0.8042 | 0.8071 | 0.8056 | 0.8787 |
|
64 |
+
| No log | 7.0 | 280 | 0.5787 | 0.7878 | 0.8120 | 0.7998 | 0.8758 |
|
65 |
+
| No log | 8.0 | 320 | 0.6357 | 0.7841 | 0.8120 | 0.7978 | 0.8718 |
|
66 |
+
| No log | 9.0 | 360 | 0.6359 | 0.8265 | 0.8366 | 0.8315 | 0.8879 |
|
67 |
+
| No log | 10.0 | 400 | 0.6735 | 0.8048 | 0.8305 | 0.8174 | 0.8827 |
|
68 |
+
| No log | 11.0 | 440 | 0.7243 | 0.8087 | 0.8206 | 0.8146 | 0.8804 |
|
69 |
+
| No log | 12.0 | 480 | 0.7430 | 0.8133 | 0.8292 | 0.8212 | 0.8827 |
|
70 |
+
| 0.244 | 13.0 | 520 | 0.7097 | 0.8058 | 0.8206 | 0.8131 | 0.8810 |
|
71 |
+
| 0.244 | 14.0 | 560 | 0.7885 | 0.8152 | 0.8182 | 0.8167 | 0.8787 |
|
72 |
+
| 0.244 | 15.0 | 600 | 0.7925 | 0.8082 | 0.8231 | 0.8156 | 0.8827 |
|
73 |
+
| 0.244 | 16.0 | 640 | 0.7850 | 0.8270 | 0.8280 | 0.8275 | 0.8879 |
|
74 |
+
| 0.244 | 17.0 | 680 | 0.7881 | 0.8162 | 0.8292 | 0.8227 | 0.8850 |
|
75 |
+
| 0.244 | 18.0 | 720 | 0.8490 | 0.8168 | 0.8219 | 0.8194 | 0.8810 |
|
76 |
+
| 0.244 | 19.0 | 760 | 0.8470 | 0.8163 | 0.8243 | 0.8203 | 0.8815 |
|
77 |
+
| 0.244 | 20.0 | 800 | 0.8792 | 0.8007 | 0.8194 | 0.8100 | 0.8752 |
|
78 |
+
| 0.244 | 21.0 | 840 | 0.9056 | 0.8084 | 0.8243 | 0.8163 | 0.8769 |
|
79 |
+
| 0.244 | 22.0 | 880 | 0.9099 | 0.8152 | 0.8292 | 0.8222 | 0.8827 |
|
80 |
+
| 0.244 | 23.0 | 920 | 0.8455 | 0.8166 | 0.8317 | 0.8241 | 0.8844 |
|
81 |
+
| 0.244 | 24.0 | 960 | 0.9336 | 0.8140 | 0.8170 | 0.8155 | 0.8775 |
|
82 |
+
| 0.0193 | 25.0 | 1000 | 0.9462 | 0.8145 | 0.8145 | 0.8145 | 0.8787 |
|
83 |
+
| 0.0193 | 26.0 | 1040 | 0.9457 | 0.8200 | 0.8170 | 0.8185 | 0.8792 |
|
84 |
+
| 0.0193 | 27.0 | 1080 | 0.9312 | 0.8177 | 0.8268 | 0.8222 | 0.8798 |
|
85 |
+
| 0.0193 | 28.0 | 1120 | 0.9553 | 0.8235 | 0.8194 | 0.8214 | 0.8833 |
|
86 |
+
| 0.0193 | 29.0 | 1160 | 0.9450 | 0.8207 | 0.8268 | 0.8237 | 0.8821 |
|
87 |
+
| 0.0193 | 30.0 | 1200 | 0.9337 | 0.8335 | 0.8366 | 0.8351 | 0.8896 |
|
88 |
+
| 0.0193 | 31.0 | 1240 | 0.9476 | 0.8203 | 0.8354 | 0.8278 | 0.8861 |
|
89 |
+
| 0.0193 | 32.0 | 1280 | 0.9443 | 0.8182 | 0.8292 | 0.8237 | 0.8838 |
|
90 |
+
| 0.0193 | 33.0 | 1320 | 0.9713 | 0.8197 | 0.8268 | 0.8232 | 0.8844 |
|
91 |
+
| 0.0193 | 34.0 | 1360 | 0.9751 | 0.8210 | 0.8280 | 0.8245 | 0.8821 |
|
92 |
+
| 0.0193 | 35.0 | 1400 | 0.9850 | 0.8129 | 0.8219 | 0.8173 | 0.8815 |
|
93 |
+
| 0.0193 | 36.0 | 1440 | 0.9546 | 0.8182 | 0.8292 | 0.8237 | 0.8821 |
|
94 |
+
| 0.0193 | 37.0 | 1480 | 0.9713 | 0.8216 | 0.8317 | 0.8266 | 0.8844 |
|
95 |
+
| 0.0049 | 38.0 | 1520 | 0.9696 | 0.8234 | 0.8305 | 0.8269 | 0.8850 |
|
96 |
+
| 0.0049 | 39.0 | 1560 | 0.9722 | 0.8222 | 0.8354 | 0.8288 | 0.8861 |
|
97 |
+
| 0.0049 | 40.0 | 1600 | 0.9705 | 0.8273 | 0.8354 | 0.8313 | 0.8879 |
|
98 |
+
| 0.0049 | 41.0 | 1640 | 0.9777 | 0.8190 | 0.8280 | 0.8235 | 0.8838 |
|
99 |
+
| 0.0049 | 42.0 | 1680 | 0.9841 | 0.8167 | 0.8268 | 0.8217 | 0.8850 |
|
100 |
+
| 0.0049 | 43.0 | 1720 | 0.9799 | 0.8234 | 0.8305 | 0.8269 | 0.8873 |
|
101 |
+
| 0.0049 | 44.0 | 1760 | 0.9785 | 0.8248 | 0.8329 | 0.8289 | 0.8873 |
|
102 |
+
| 0.0049 | 45.0 | 1800 | 0.9863 | 0.8205 | 0.8256 | 0.8230 | 0.8856 |
|
103 |
+
| 0.0049 | 46.0 | 1840 | 0.9860 | 0.8278 | 0.8329 | 0.8304 | 0.8879 |
|
104 |
+
| 0.0049 | 47.0 | 1880 | 0.9870 | 0.8278 | 0.8329 | 0.8304 | 0.8879 |
|
105 |
+
| 0.0049 | 48.0 | 1920 | 0.9896 | 0.8278 | 0.8329 | 0.8304 | 0.8879 |
|
106 |
+
| 0.0049 | 49.0 | 1960 | 0.9997 | 0.8230 | 0.8280 | 0.8255 | 0.8850 |
|
107 |
+
| 0.0022 | 50.0 | 2000 | 1.0007 | 0.8230 | 0.8280 | 0.8255 | 0.8850 |
|
108 |
+
|
109 |
+
|
110 |
+
### Framework versions
|
111 |
+
|
112 |
+
- Transformers 4.34.1
|
113 |
+
- Pytorch 2.2.1+cu118
|
114 |
+
- Datasets 2.14.6
|
115 |
+
- Tokenizers 0.14.1
|
config.json
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "google-bert/bert-base-multilingual-uncased",
|
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": "PRON",
|
14 |
+
"1": "NOUN",
|
15 |
+
"2": "VERB",
|
16 |
+
"3": "PUNCT",
|
17 |
+
"4": "PROPN",
|
18 |
+
"5": "ADJ",
|
19 |
+
"6": "ADV",
|
20 |
+
"7": "CCONJ",
|
21 |
+
"8": "NUM",
|
22 |
+
"9": "SCONJ",
|
23 |
+
"10": "ADP",
|
24 |
+
"11": "DET",
|
25 |
+
"12": "SYM"
|
26 |
+
},
|
27 |
+
"initializer_range": 0.02,
|
28 |
+
"intermediate_size": 3072,
|
29 |
+
"label2id": {
|
30 |
+
"ADJ": 5,
|
31 |
+
"ADP": 10,
|
32 |
+
"ADV": 6,
|
33 |
+
"CCONJ": 7,
|
34 |
+
"DET": 11,
|
35 |
+
"NOUN": 1,
|
36 |
+
"NUM": 8,
|
37 |
+
"PRON": 0,
|
38 |
+
"PROPN": 4,
|
39 |
+
"PUNCT": 3,
|
40 |
+
"SCONJ": 9,
|
41 |
+
"SYM": 12,
|
42 |
+
"VERB": 2
|
43 |
+
},
|
44 |
+
"layer_norm_eps": 1e-12,
|
45 |
+
"max_position_embeddings": 512,
|
46 |
+
"model_type": "bert",
|
47 |
+
"num_attention_heads": 12,
|
48 |
+
"num_hidden_layers": 12,
|
49 |
+
"pad_token_id": 0,
|
50 |
+
"pooler_fc_size": 768,
|
51 |
+
"pooler_num_attention_heads": 12,
|
52 |
+
"pooler_num_fc_layers": 3,
|
53 |
+
"pooler_size_per_head": 128,
|
54 |
+
"pooler_type": "first_token_transform",
|
55 |
+
"position_embedding_type": "absolute",
|
56 |
+
"torch_dtype": "float32",
|
57 |
+
"transformers_version": "4.34.1",
|
58 |
+
"type_vocab_size": 2,
|
59 |
+
"use_cache": true,
|
60 |
+
"vocab_size": 105879
|
61 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:975b10921bd34829027864bcc3a046a6c3e4df8e65536677e0babc8387353ce2
|
3 |
+
size 667171430
|
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": true,
|
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:22b62cbb422046987e4995162835141b74ad20e8ac1fe1a13abecae4e923700d
|
3 |
+
size 4536
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|