RachelCX commited on
Commit
124956d
·
verified ·
1 Parent(s): 419bac4

RachelCX/ner_for_GJ

Browse files
README.md ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: hfl/chinese-bert-wwm-ext
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - precision
9
+ - recall
10
+ - f1
11
+ - accuracy
12
+ model-index:
13
+ - name: ner_model_output
14
+ results: []
15
+ ---
16
+
17
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
18
+ should probably proofread and complete it, then remove this comment. -->
19
+
20
+ # ner_model_output
21
+
22
+ This model is a fine-tuned version of [hfl/chinese-bert-wwm-ext](https://huggingface.co/hfl/chinese-bert-wwm-ext) on an unknown dataset.
23
+ It achieves the following results on the evaluation set:
24
+ - Loss: 0.3016
25
+ - Precision: 0.9999
26
+ - Recall: 0.9999
27
+ - F1: 0.9999
28
+ - Accuracy: 1.0000
29
+
30
+ ## Model description
31
+
32
+ More information needed
33
+
34
+ ## Intended uses & limitations
35
+
36
+ More information needed
37
+
38
+ ## Training and evaluation data
39
+
40
+ More information needed
41
+
42
+ ## Training procedure
43
+
44
+ ### Training hyperparameters
45
+
46
+ The following hyperparameters were used during training:
47
+ - learning_rate: 3e-05
48
+ - train_batch_size: 16
49
+ - eval_batch_size: 16
50
+ - seed: 42
51
+ - optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
52
+ - lr_scheduler_type: linear
53
+ - num_epochs: 10
54
+ - mixed_precision_training: Native AMP
55
+
56
+ ### Training results
57
+
58
+ | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
59
+ |:-------------:|:-----:|:-----:|:---------------:|:---------:|:------:|:------:|:--------:|
60
+ | 0.3028 | 1.0 | 3900 | 0.3021 | 0.9999 | 0.9999 | 0.9999 | 1.0000 |
61
+ | 0.3019 | 2.0 | 7800 | 0.3019 | 0.9999 | 0.9999 | 0.9999 | 1.0000 |
62
+ | 0.3045 | 3.0 | 11700 | 0.3017 | 0.9999 | 0.9999 | 0.9999 | 1.0000 |
63
+ | 0.3033 | 4.0 | 15600 | 0.3022 | 0.9998 | 0.9998 | 0.9998 | 0.9999 |
64
+ | 0.3026 | 5.0 | 19500 | 0.3016 | 0.9999 | 0.9999 | 0.9999 | 1.0000 |
65
+
66
+
67
+ ### Framework versions
68
+
69
+ - Transformers 4.51.3
70
+ - Pytorch 2.6.0+cu124
71
+ - Tokenizers 0.21.1
config.json ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "BertForNER"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "classifier_dropout": null,
7
+ "directionality": "bidi",
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.1,
10
+ "hidden_size": 768,
11
+ "id2label": {
12
+ "0": "B-\u4e1a\u52a1\u7c7b\u578b",
13
+ "1": "B-\u4fe1\u606f\u7c7b\u578b",
14
+ "2": "B-\u533a\u57df\u7c7b\u578b",
15
+ "3": "B-\u5ba2\u6237\u7c7b\u578b",
16
+ "4": "B-\u6570\u503c\u7c7b\u578b",
17
+ "5": "B-\u65f6\u95f4\u7c7b\u578b",
18
+ "6": "B-\u6761\u4ef6\u7c7b\u578b",
19
+ "7": "B-\u72b6\u6001\u7c7b\u578b",
20
+ "8": "I-\u4e1a\u52a1\u7c7b\u578b",
21
+ "9": "I-\u4fe1\u606f\u7c7b\u578b",
22
+ "10": "I-\u533a\u57df\u7c7b\u578b",
23
+ "11": "I-\u5ba2\u6237\u7c7b\u578b",
24
+ "12": "I-\u6570\u503c\u7c7b\u578b",
25
+ "13": "I-\u65f6\u95f4\u7c7b\u578b",
26
+ "14": "I-\u6761\u4ef6\u7c7b\u578b",
27
+ "15": "I-\u72b6\u6001\u7c7b\u578b",
28
+ "16": "O"
29
+ },
30
+ "initializer_range": 0.02,
31
+ "intermediate_size": 3072,
32
+ "label2id": {
33
+ "B-\u4e1a\u52a1\u7c7b\u578b": 0,
34
+ "B-\u4fe1\u606f\u7c7b\u578b": 1,
35
+ "B-\u533a\u57df\u7c7b\u578b": 2,
36
+ "B-\u5ba2\u6237\u7c7b\u578b": 3,
37
+ "B-\u6570\u503c\u7c7b\u578b": 4,
38
+ "B-\u65f6\u95f4\u7c7b\u578b": 5,
39
+ "B-\u6761\u4ef6\u7c7b\u578b": 6,
40
+ "B-\u72b6\u6001\u7c7b\u578b": 7,
41
+ "I-\u4e1a\u52a1\u7c7b\u578b": 8,
42
+ "I-\u4fe1\u606f\u7c7b\u578b": 9,
43
+ "I-\u533a\u57df\u7c7b\u578b": 10,
44
+ "I-\u5ba2\u6237\u7c7b\u578b": 11,
45
+ "I-\u6570\u503c\u7c7b\u578b": 12,
46
+ "I-\u65f6\u95f4\u7c7b\u578b": 13,
47
+ "I-\u6761\u4ef6\u7c7b\u578b": 14,
48
+ "I-\u72b6\u6001\u7c7b\u578b": 15,
49
+ "O": 16
50
+ },
51
+ "layer_norm_eps": 1e-12,
52
+ "max_position_embeddings": 512,
53
+ "model_type": "bert",
54
+ "num_attention_heads": 12,
55
+ "num_hidden_layers": 12,
56
+ "output_past": true,
57
+ "pad_token_id": 0,
58
+ "pooler_fc_size": 768,
59
+ "pooler_num_attention_heads": 12,
60
+ "pooler_num_fc_layers": 3,
61
+ "pooler_size_per_head": 128,
62
+ "pooler_type": "first_token_transform",
63
+ "position_embedding_type": "absolute",
64
+ "torch_dtype": "float32",
65
+ "transformers_version": "4.51.3",
66
+ "type_vocab_size": 2,
67
+ "use_cache": true,
68
+ "vocab_size": 21128
69
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dcd5ca7e0bb6253e329076e4fcc15f628c1cb22e2ce2a06b70cdf7ebb0bac3d1
3
+ size 409146380
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,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": false,
45
+ "cls_token": "[CLS]",
46
+ "do_lower_case": true,
47
+ "extra_special_tokens": {},
48
+ "mask_token": "[MASK]",
49
+ "model_max_length": 1000000000000000019884624838656,
50
+ "pad_token": "[PAD]",
51
+ "sep_token": "[SEP]",
52
+ "strip_accents": null,
53
+ "tokenize_chinese_chars": true,
54
+ "tokenizer_class": "BertTokenizer",
55
+ "unk_token": "[UNK]"
56
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c8571ccf61a907a390cf7414ed0b6a327e28d027fd3644227804cf561c2b3ec5
3
+ size 5304
vocab.txt ADDED
The diff for this file is too large to render. See raw diff