Vantwoth commited on
Commit
10e16a4
1 Parent(s): 1106462

bertNer-biobert

Browse files
README.md ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: bert-base-cased
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - precision
9
+ - recall
10
+ - f1
11
+ - accuracy
12
+ model-index:
13
+ - name: bertNer-biobert
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
+ # bertNer-biobert
21
+
22
+ This model is a fine-tuned version of [bert-base-cased](https://huggingface.co/bert-base-cased) on an unknown dataset.
23
+ It achieves the following results on the evaluation set:
24
+ - Loss: 0.1284
25
+ - Precision: 0.9471
26
+ - Recall: 0.9630
27
+ - F1: 0.9550
28
+ - Accuracy: 0.9758
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: 2e-05
48
+ - train_batch_size: 8
49
+ - eval_batch_size: 8
50
+ - seed: 42
51
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
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.1851 | 1.0 | 1224 | 0.1186 | 0.9202 | 0.9550 | 0.9373 | 0.9670 |
61
+ | 0.1188 | 2.0 | 2448 | 0.1061 | 0.9349 | 0.9684 | 0.9514 | 0.9737 |
62
+ | 0.0789 | 3.0 | 3672 | 0.1051 | 0.9381 | 0.9710 | 0.9543 | 0.9755 |
63
+ | 0.0569 | 4.0 | 4896 | 0.1062 | 0.9403 | 0.9712 | 0.9555 | 0.9761 |
64
+ | 0.0492 | 5.0 | 6120 | 0.1174 | 0.9403 | 0.9646 | 0.9523 | 0.9734 |
65
+ | 0.0405 | 6.0 | 7344 | 0.1220 | 0.9426 | 0.9638 | 0.9531 | 0.9739 |
66
+ | 0.0355 | 7.0 | 8568 | 0.1175 | 0.9446 | 0.9651 | 0.9548 | 0.9756 |
67
+ | 0.0296 | 8.0 | 9792 | 0.1239 | 0.9446 | 0.9660 | 0.9552 | 0.9757 |
68
+ | 0.0224 | 9.0 | 11016 | 0.1247 | 0.9474 | 0.9640 | 0.9556 | 0.9760 |
69
+ | 0.0219 | 10.0 | 12240 | 0.1284 | 0.9471 | 0.9630 | 0.9550 | 0.9758 |
70
+
71
+
72
+ ### Framework versions
73
+
74
+ - Transformers 4.45.1
75
+ - Pytorch 2.4.0
76
+ - Datasets 3.0.1
77
+ - Tokenizers 0.20.0
config.json ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "bert-base-cased",
3
+ "architectures": [
4
+ "BertForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "gradient_checkpointing": false,
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
+ "7": "LABEL_7",
21
+ "8": "LABEL_8",
22
+ "9": "LABEL_9",
23
+ "10": "LABEL_10",
24
+ "11": "LABEL_11",
25
+ "12": "LABEL_12",
26
+ "13": "LABEL_13",
27
+ "14": "LABEL_14",
28
+ "15": "LABEL_15",
29
+ "16": "LABEL_16",
30
+ "17": "LABEL_17",
31
+ "18": "LABEL_18",
32
+ "19": "LABEL_19",
33
+ "20": "LABEL_20",
34
+ "21": "LABEL_21",
35
+ "22": "LABEL_22",
36
+ "23": "LABEL_23",
37
+ "24": "LABEL_24",
38
+ "25": "LABEL_25",
39
+ "26": "LABEL_26",
40
+ "27": "LABEL_27",
41
+ "28": "LABEL_28",
42
+ "29": "LABEL_29"
43
+ },
44
+ "initializer_range": 0.02,
45
+ "intermediate_size": 3072,
46
+ "label2id": {
47
+ "LABEL_0": 0,
48
+ "LABEL_1": 1,
49
+ "LABEL_10": 10,
50
+ "LABEL_11": 11,
51
+ "LABEL_12": 12,
52
+ "LABEL_13": 13,
53
+ "LABEL_14": 14,
54
+ "LABEL_15": 15,
55
+ "LABEL_16": 16,
56
+ "LABEL_17": 17,
57
+ "LABEL_18": 18,
58
+ "LABEL_19": 19,
59
+ "LABEL_2": 2,
60
+ "LABEL_20": 20,
61
+ "LABEL_21": 21,
62
+ "LABEL_22": 22,
63
+ "LABEL_23": 23,
64
+ "LABEL_24": 24,
65
+ "LABEL_25": 25,
66
+ "LABEL_26": 26,
67
+ "LABEL_27": 27,
68
+ "LABEL_28": 28,
69
+ "LABEL_29": 29,
70
+ "LABEL_3": 3,
71
+ "LABEL_4": 4,
72
+ "LABEL_5": 5,
73
+ "LABEL_6": 6,
74
+ "LABEL_7": 7,
75
+ "LABEL_8": 8,
76
+ "LABEL_9": 9
77
+ },
78
+ "layer_norm_eps": 1e-12,
79
+ "max_position_embeddings": 512,
80
+ "model_type": "bert",
81
+ "num_attention_heads": 12,
82
+ "num_hidden_layers": 12,
83
+ "pad_token_id": 0,
84
+ "position_embedding_type": "absolute",
85
+ "torch_dtype": "float16",
86
+ "transformers_version": "4.45.1",
87
+ "type_vocab_size": 2,
88
+ "use_cache": true,
89
+ "vocab_size": 28996
90
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1c20bca372dcdc7aab4b9098c7fceb2814a4466e83f1a6fcf5351f7216156978
3
+ size 215508724
runs/Nov20_13-36-45_7bad536ebe99/events.out.tfevents.1732109890.7bad536ebe99.30.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:44d73053680de5314a76081efef2c424521e17a11940f377c4837b0585c89279
3
+ size 7242
runs/Nov20_13-36-45_7bad536ebe99/events.out.tfevents.1732110258.7bad536ebe99.30.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ffee3fbbdb142a93d74820600ca28db4f70c3cfa690f1c692f6282cf40c315fe
3
+ size 560
runs/Nov20_13-44-18_7bad536ebe99/events.out.tfevents.1732110277.7bad536ebe99.30.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8bef5637e266c0f8b8e86ac136c6c2256349e95ba7da6abcb50fdbb4a2732948
3
+ size 16342
runs/Nov20_13-44-18_7bad536ebe99/events.out.tfevents.1732116056.7bad536ebe99.30.3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:477992f9e83c1c1ecfaf912b798632a8f4bc69a872ee8ee07dd8c70beb58bd93
3
+ size 560
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": false,
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:635dc74bfd480b0cdf9ccf76878d4222ffb1c2eea24e15ea1b4dbfec204a6c4f
3
+ size 5240
vocab.txt ADDED
The diff for this file is too large to render. See raw diff