gyr66 commited on
Commit
8259b9f
β€’
1 Parent(s): 8247318
README.md ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: gyr66/RoBERTa-ext-large-chinese-finetuned-ner
3
+ tags:
4
+ - generated_from_trainer
5
+ metrics:
6
+ - precision
7
+ - recall
8
+ - f1
9
+ - accuracy
10
+ model-index:
11
+ - name: Ernie-3.0-large-crf-chinese-finetuned-ner
12
+ results: []
13
+ ---
14
+
15
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
16
+ should probably proofread and complete it, then remove this comment. -->
17
+
18
+ # Ernie-3.0-large-crf-chinese-finetuned-ner
19
+
20
+ This model is a fine-tuned version of [gyr66/RoBERTa-ext-large-chinese-finetuned-ner](https://huggingface.co/gyr66/RoBERTa-ext-large-chinese-finetuned-ner) on an unknown dataset.
21
+ It achieves the following results on the evaluation set:
22
+ - Loss: 0.5907
23
+ - Precision: 0.7278
24
+ - Recall: 0.75
25
+ - F1: 0.7387
26
+ - Accuracy: 0.9629
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: 4
47
+ - eval_batch_size: 8
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 | Precision | Recall | F1 | Accuracy |
56
+ |:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
57
+ | 0.0061 | 1.0 | 503 | 0.6739 | 0.6747 | 0.7457 | 0.7084 | 0.9608 |
58
+ | 0.0078 | 2.0 | 1006 | 0.6343 | 0.7083 | 0.7518 | 0.7294 | 0.9622 |
59
+ | 0.0072 | 3.0 | 1509 | 0.6237 | 0.6867 | 0.7621 | 0.7224 | 0.9607 |
60
+ | 0.0052 | 4.0 | 2012 | 0.5929 | 0.7136 | 0.7616 | 0.7368 | 0.9635 |
61
+ | 0.0031 | 5.0 | 2515 | 0.5907 | 0.7278 | 0.75 | 0.7387 | 0.9629 |
62
+ | 0.0014 | 6.0 | 3018 | 0.6080 | 0.7172 | 0.7558 | 0.7360 | 0.9636 |
63
+ | 0.001 | 7.0 | 3521 | 0.6179 | 0.7198 | 0.7586 | 0.7387 | 0.9637 |
64
+ | 0.0005 | 8.0 | 4024 | 0.6208 | 0.7211 | 0.7518 | 0.7361 | 0.9632 |
65
+ | 0.0004 | 9.0 | 4527 | 0.6169 | 0.7271 | 0.7487 | 0.7378 | 0.9636 |
66
+ | 0.0002 | 10.0 | 5030 | 0.6202 | 0.7266 | 0.7495 | 0.7379 | 0.9636 |
67
+
68
+
69
+ ### Framework versions
70
+
71
+ - Transformers 4.35.2
72
+ - Pytorch 2.1.0+cu121
73
+ - Datasets 2.16.1
74
+ - Tokenizers 0.15.0
config.json ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "gyr66/RoBERTa-ext-large-chinese-finetuned-ner",
3
+ "architectures": [
4
+ "BertCrfForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "directionality": "bidi",
10
+ "eos_token_id": 2,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 1024,
14
+ "id2label": {
15
+ "0": "O",
16
+ "1": "B-position",
17
+ "2": "I-position",
18
+ "3": "B-name",
19
+ "4": "I-name",
20
+ "5": "B-movie",
21
+ "6": "I-movie",
22
+ "7": "B-organization",
23
+ "8": "I-organization",
24
+ "9": "B-company",
25
+ "10": "I-company",
26
+ "11": "B-book",
27
+ "12": "I-book",
28
+ "13": "B-address",
29
+ "14": "I-address",
30
+ "15": "B-scene",
31
+ "16": "I-scene",
32
+ "17": "B-mobile",
33
+ "18": "I-mobile",
34
+ "19": "B-email",
35
+ "20": "I-email",
36
+ "21": "B-game",
37
+ "22": "I-game",
38
+ "23": "B-government",
39
+ "24": "I-government",
40
+ "25": "B-QQ",
41
+ "26": "I-QQ",
42
+ "27": "B-vx",
43
+ "28": "I-vx"
44
+ },
45
+ "initializer_range": 0.02,
46
+ "intermediate_size": 4096,
47
+ "label2id": {
48
+ "B-QQ": 25,
49
+ "B-address": 13,
50
+ "B-book": 11,
51
+ "B-company": 9,
52
+ "B-email": 19,
53
+ "B-game": 21,
54
+ "B-government": 23,
55
+ "B-mobile": 17,
56
+ "B-movie": 5,
57
+ "B-name": 3,
58
+ "B-organization": 7,
59
+ "B-position": 1,
60
+ "B-scene": 15,
61
+ "B-vx": 27,
62
+ "I-QQ": 26,
63
+ "I-address": 14,
64
+ "I-book": 12,
65
+ "I-company": 10,
66
+ "I-email": 20,
67
+ "I-game": 22,
68
+ "I-government": 24,
69
+ "I-mobile": 18,
70
+ "I-movie": 6,
71
+ "I-name": 4,
72
+ "I-organization": 8,
73
+ "I-position": 2,
74
+ "I-scene": 16,
75
+ "I-vx": 28,
76
+ "O": 0
77
+ },
78
+ "layer_norm_eps": 1e-12,
79
+ "max_position_embeddings": 512,
80
+ "model_type": "bert",
81
+ "num_attention_heads": 16,
82
+ "num_hidden_layers": 24,
83
+ "output_past": true,
84
+ "pad_token_id": 0,
85
+ "pooler_fc_size": 768,
86
+ "pooler_num_attention_heads": 12,
87
+ "pooler_num_fc_layers": 3,
88
+ "pooler_size_per_head": 128,
89
+ "pooler_type": "first_token_transform",
90
+ "position_embedding_type": "absolute",
91
+ "torch_dtype": "float32",
92
+ "transformers_version": "4.35.2",
93
+ "type_vocab_size": 2,
94
+ "use_cache": true,
95
+ "vocab_size": 21128
96
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aca638bd7457e49d25af48565283b600d917912794b910392de6baa304fa8781
3
+ size 1298060872
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,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "ignore_mismatched_sizes": true,
48
+ "mask_token": "[MASK]",
49
+ "max_length": 512,
50
+ "model_max_length": 1000000000000000019884624838656,
51
+ "pad_token": "[PAD]",
52
+ "sep_token": "[SEP]",
53
+ "stride": 0,
54
+ "strip_accents": null,
55
+ "tokenize_chinese_chars": true,
56
+ "tokenizer_class": "BertTokenizer",
57
+ "truncation_side": "right",
58
+ "truncation_strategy": "longest_first",
59
+ "unk_token": "[UNK]"
60
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b8ce8a9b2ff79ff8f6c073446185ad704c453e756340df65a68d33a8e6590edc
3
+ size 4600
vocab.txt ADDED
The diff for this file is too large to render. See raw diff