gyr66 commited on
Commit
a8c1e78
·
1 Parent(s): 9a70fa3
README.md ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - generated_from_trainer
4
+ metrics:
5
+ - precision
6
+ - recall
7
+ - f1
8
+ - accuracy
9
+ model-index:
10
+ - name: Ernie-3.0-base-chinese-finetuned-ner
11
+ results: []
12
+ ---
13
+
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
+
17
+ # Ernie-3.0-base-chinese-finetuned-ner
18
+
19
+ This model was trained from scratch on an unknown dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.3548
22
+ - Precision: 0.6193
23
+ - Recall: 0.7467
24
+ - F1: 0.6771
25
+ - Accuracy: 0.9069
26
+
27
+ ## Model description
28
+
29
+ More information needed
30
+
31
+ ## Intended uses & limitations
32
+
33
+ More information needed
34
+
35
+ ## Training and evaluation data
36
+
37
+ More information needed
38
+
39
+ ## Training procedure
40
+
41
+ ### Training hyperparameters
42
+
43
+ The following hyperparameters were used during training:
44
+ - learning_rate: 2e-05
45
+ - train_batch_size: 16
46
+ - eval_batch_size: 8
47
+ - seed: 42
48
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
49
+ - lr_scheduler_type: linear
50
+ - num_epochs: 10
51
+
52
+ ### Training results
53
+
54
+ | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
55
+ |:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
56
+ | 0.3645 | 1.0 | 126 | 0.3654 | 0.5452 | 0.6712 | 0.6017 | 0.8951 |
57
+ | 0.2821 | 2.0 | 252 | 0.3639 | 0.5748 | 0.7127 | 0.6364 | 0.8961 |
58
+ | 0.2378 | 3.0 | 378 | 0.3561 | 0.5801 | 0.7263 | 0.6451 | 0.8991 |
59
+ | 0.217 | 4.0 | 504 | 0.3531 | 0.6027 | 0.7397 | 0.6642 | 0.9030 |
60
+ | 0.2083 | 5.0 | 630 | 0.3640 | 0.5991 | 0.7435 | 0.6635 | 0.8999 |
61
+ | 0.1956 | 6.0 | 756 | 0.3488 | 0.6218 | 0.7299 | 0.6715 | 0.9064 |
62
+ | 0.18 | 7.0 | 882 | 0.3457 | 0.6207 | 0.7442 | 0.6769 | 0.9072 |
63
+ | 0.1696 | 8.0 | 1008 | 0.3543 | 0.6191 | 0.7460 | 0.6766 | 0.9061 |
64
+ | 0.1618 | 9.0 | 1134 | 0.3548 | 0.6193 | 0.7467 | 0.6771 | 0.9069 |
65
+ | 0.1568 | 10.0 | 1260 | 0.3553 | 0.6180 | 0.7462 | 0.6761 | 0.9063 |
66
+
67
+
68
+ ### Framework versions
69
+
70
+ - Transformers 4.35.2
71
+ - Pytorch 2.1.0+cu121
72
+ - Datasets 2.16.1
73
+ - Tokenizers 0.15.0
added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "[UNK]": 39979
3
+ }
config.json ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "Ernie-3.0-base-chinese-finetuned-ner",
3
+ "architectures": [
4
+ "ErnieForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.1,
10
+ "hidden_size": 768,
11
+ "id2label": {
12
+ "0": "O",
13
+ "1": "B-position",
14
+ "2": "I-position",
15
+ "3": "B-name",
16
+ "4": "I-name",
17
+ "5": "B-movie",
18
+ "6": "I-movie",
19
+ "7": "B-organization",
20
+ "8": "I-organization",
21
+ "9": "B-company",
22
+ "10": "I-company",
23
+ "11": "B-book",
24
+ "12": "I-book",
25
+ "13": "B-address",
26
+ "14": "I-address",
27
+ "15": "B-scene",
28
+ "16": "I-scene",
29
+ "17": "B-mobile",
30
+ "18": "I-mobile",
31
+ "19": "B-email",
32
+ "20": "I-email",
33
+ "21": "B-game",
34
+ "22": "I-game",
35
+ "23": "B-government",
36
+ "24": "I-government",
37
+ "25": "B-QQ",
38
+ "26": "I-QQ",
39
+ "27": "B-vx",
40
+ "28": "I-vx"
41
+ },
42
+ "initializer_range": 0.02,
43
+ "intermediate_size": 3072,
44
+ "label2id": {
45
+ "B-QQ": 25,
46
+ "B-address": 13,
47
+ "B-book": 11,
48
+ "B-company": 9,
49
+ "B-email": 19,
50
+ "B-game": 21,
51
+ "B-government": 23,
52
+ "B-mobile": 17,
53
+ "B-movie": 5,
54
+ "B-name": 3,
55
+ "B-organization": 7,
56
+ "B-position": 1,
57
+ "B-scene": 15,
58
+ "B-vx": 27,
59
+ "I-QQ": 26,
60
+ "I-address": 14,
61
+ "I-book": 12,
62
+ "I-company": 10,
63
+ "I-email": 20,
64
+ "I-game": 22,
65
+ "I-government": 24,
66
+ "I-mobile": 18,
67
+ "I-movie": 6,
68
+ "I-name": 4,
69
+ "I-organization": 8,
70
+ "I-position": 2,
71
+ "I-scene": 16,
72
+ "I-vx": 28,
73
+ "O": 0
74
+ },
75
+ "layer_norm_eps": 1e-05,
76
+ "max_position_embeddings": 2048,
77
+ "model_type": "ernie",
78
+ "num_attention_heads": 12,
79
+ "num_hidden_layers": 12,
80
+ "pad_token_id": 0,
81
+ "position_embedding_type": "absolute",
82
+ "task_type_vocab_size": 3,
83
+ "torch_dtype": "float32",
84
+ "transformers_version": "4.35.2",
85
+ "type_vocab_size": 4,
86
+ "use_cache": true,
87
+ "use_task_id": true,
88
+ "vocab_size": 40000
89
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1f91d99026ad7954852a1bf8906f5684f148bbc78e529fa615cf3bd2d48adf68
3
+ size 469529812
special_tokens_map.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": {
3
+ "content": "[CLS]",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "mask_token": {
10
+ "content": "[MASK]",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "[PAD]",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "sep_token": {
24
+ "content": "[SEP]",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "unk_token": {
31
+ "content": "[UNK]",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ }
37
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "1": {
12
+ "content": "[CLS]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "[SEP]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "[MASK]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "39979": {
36
+ "content": "[UNK]",
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": true,
48
+ "ignore_mismatched_sizes": true,
49
+ "mask_token": "[MASK]",
50
+ "model_max_length": 1000000000000000019884624838656,
51
+ "never_split": null,
52
+ "pad_token": "[PAD]",
53
+ "sep_token": "[SEP]",
54
+ "strip_accents": null,
55
+ "tokenize_chinese_chars": true,
56
+ "tokenizer_class": "BertTokenizer",
57
+ "unk_token": "[UNK]"
58
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ee9bbc5e1c4471260f7c6f5e9be8823e910dec16b7f30b6aae9835e038263833
3
+ size 4600
vocab.txt ADDED
The diff for this file is too large to render. See raw diff