nattkorat commited on
Commit
e09f64e
·
verified ·
1 Parent(s): f789b9d

Training complete

Browse files
README.md ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ base_model: allenai/scibert_scivocab_uncased
4
+ tags:
5
+ - generated_from_trainer
6
+ model-index:
7
+ - name: scibert-base-uncased-ner
8
+ results: []
9
+ ---
10
+
11
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
12
+ should probably proofread and complete it, then remove this comment. -->
13
+
14
+ # scibert-base-uncased-ner
15
+
16
+ This model is a fine-tuned version of [allenai/scibert_scivocab_uncased](https://huggingface.co/allenai/scibert_scivocab_uncased) on an unknown dataset.
17
+ It achieves the following results on the evaluation set:
18
+ - Loss: 0.0104
19
+ - Cases: {'precision': 0.9827586206896551, 'recall': 0.9827586206896551, 'f1': 0.9827586206896551, 'number': 464}
20
+ - Country: {'precision': 0.9981378026070763, 'recall': 0.9981378026070763, 'f1': 0.9981378026070763, 'number': 537}
21
+ - Date: {'precision': 0.9811320754716981, 'recall': 0.9879101899827288, 'f1': 0.9845094664371773, 'number': 579}
22
+ - Virus: {'precision': 0.9944954128440368, 'recall': 0.9963235294117647, 'f1': 0.9954086317722682, 'number': 544}
23
+ - Overall Precision: 0.9892
24
+ - Overall Recall: 0.9915
25
+ - Overall F1: 0.9904
26
+ - Overall Accuracy: 0.9967
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: 8
47
+ - eval_batch_size: 8
48
+ - seed: 42
49
+ - optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
50
+ - lr_scheduler_type: linear
51
+ - num_epochs: 5
52
+
53
+ ### Training results
54
+
55
+ | Training Loss | Epoch | Step | Validation Loss | Cases | Country | Date | Virus | Overall Precision | Overall Recall | Overall F1 | Overall Accuracy |
56
+ |:-------------:|:-----:|:----:|:---------------:|:--------------------------------------------------------------------------------------------------------:|:--------------------------------------------------------------------------------------------------------:|:--------------------------------------------------------------------------------------------------------:|:--------------------------------------------------------------------------------------------------------:|:-----------------:|:--------------:|:----------:|:----------------:|
57
+ | No log | 1.0 | 291 | 0.0217 | {'precision': 0.9393305439330544, 'recall': 0.9676724137931034, 'f1': 0.9532908704883226, 'number': 464} | {'precision': 0.9981378026070763, 'recall': 0.9981378026070763, 'f1': 0.9981378026070763, 'number': 537} | {'precision': 0.9571183533447685, 'recall': 0.9637305699481865, 'f1': 0.9604130808950087, 'number': 579} | {'precision': 0.9908256880733946, 'recall': 0.9926470588235294, 'f1': 0.9917355371900827, 'number': 544} | 0.9720 | 0.9807 | 0.9763 | 0.9947 |
58
+ | 0.0071 | 2.0 | 582 | 0.0076 | {'precision': 0.9778270509977827, 'recall': 0.9504310344827587, 'f1': 0.9639344262295082, 'number': 464} | {'precision': 0.9944341372912802, 'recall': 0.9981378026070763, 'f1': 0.996282527881041, 'number': 537} | {'precision': 0.975736568457539, 'recall': 0.9723661485319517, 'f1': 0.9740484429065744, 'number': 579} | {'precision': 0.9908088235294118, 'recall': 0.9908088235294118, 'f1': 0.9908088235294118, 'number': 544} | 0.9848 | 0.9788 | 0.9818 | 0.9973 |
59
+ | 0.0071 | 3.0 | 873 | 0.0151 | {'precision': 0.9827586206896551, 'recall': 0.9827586206896551, 'f1': 0.9827586206896551, 'number': 464} | {'precision': 0.9981378026070763, 'recall': 0.9981378026070763, 'f1': 0.9981378026070763, 'number': 537} | {'precision': 0.9776632302405498, 'recall': 0.9827288428324698, 'f1': 0.9801894918173987, 'number': 579} | {'precision': 0.9944954128440368, 'recall': 0.9963235294117647, 'f1': 0.9954086317722682, 'number': 544} | 0.9883 | 0.9901 | 0.9892 | 0.9967 |
60
+ | 0.0028 | 4.0 | 1164 | 0.0105 | {'precision': 0.9869281045751634, 'recall': 0.9762931034482759, 'f1': 0.981581798483207, 'number': 464} | {'precision': 0.9944341372912802, 'recall': 0.9981378026070763, 'f1': 0.996282527881041, 'number': 537} | {'precision': 0.9793459552495697, 'recall': 0.9827288428324698, 'f1': 0.9810344827586207, 'number': 579} | {'precision': 0.9944954128440368, 'recall': 0.9963235294117647, 'f1': 0.9954086317722682, 'number': 544} | 0.9887 | 0.9887 | 0.9887 | 0.9968 |
61
+ | 0.0028 | 5.0 | 1455 | 0.0104 | {'precision': 0.9827586206896551, 'recall': 0.9827586206896551, 'f1': 0.9827586206896551, 'number': 464} | {'precision': 0.9981378026070763, 'recall': 0.9981378026070763, 'f1': 0.9981378026070763, 'number': 537} | {'precision': 0.9811320754716981, 'recall': 0.9879101899827288, 'f1': 0.9845094664371773, 'number': 579} | {'precision': 0.9944954128440368, 'recall': 0.9963235294117647, 'f1': 0.9954086317722682, 'number': 544} | 0.9892 | 0.9915 | 0.9904 | 0.9967 |
62
+
63
+
64
+ ### Framework versions
65
+
66
+ - Transformers 4.51.3
67
+ - Pytorch 2.5.1+cu121
68
+ - Datasets 3.5.0
69
+ - Tokenizers 0.21.1
config.json ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "BertForTokenClassification"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "classifier_dropout": null,
7
+ "hidden_act": "gelu",
8
+ "hidden_dropout_prob": 0.1,
9
+ "hidden_size": 768,
10
+ "id2label": {
11
+ "0": "B-CASES",
12
+ "1": "B-COUNTRY",
13
+ "2": "B-DATE",
14
+ "3": "B-DEATHS",
15
+ "4": "B-VIRUS",
16
+ "5": "I-CASES",
17
+ "6": "I-COUNTRY",
18
+ "7": "I-DATE",
19
+ "8": "I-DEATHS",
20
+ "9": "I-VIRUS",
21
+ "10": "O"
22
+ },
23
+ "initializer_range": 0.02,
24
+ "intermediate_size": 3072,
25
+ "label2id": {
26
+ "B-CASES": 0,
27
+ "B-COUNTRY": 1,
28
+ "B-DATE": 2,
29
+ "B-DEATHS": 3,
30
+ "B-VIRUS": 4,
31
+ "I-CASES": 5,
32
+ "I-COUNTRY": 6,
33
+ "I-DATE": 7,
34
+ "I-DEATHS": 8,
35
+ "I-VIRUS": 9,
36
+ "O": 10
37
+ },
38
+ "layer_norm_eps": 1e-12,
39
+ "max_position_embeddings": 512,
40
+ "model_type": "bert",
41
+ "num_attention_heads": 12,
42
+ "num_hidden_layers": 12,
43
+ "pad_token_id": 0,
44
+ "position_embedding_type": "absolute",
45
+ "torch_dtype": "float32",
46
+ "transformers_version": "4.51.3",
47
+ "type_vocab_size": 2,
48
+ "use_cache": true,
49
+ "vocab_size": 31090
50
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8c7a2a4a7357ea8eb2bfbe96a1ff101d717b273f7c7d8b1aab3e4f5604706a61
3
+ size 437368668
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,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
+ "101": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "102": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "103": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "104": {
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_basic_tokenize": true,
47
+ "do_lower_case": true,
48
+ "extra_special_tokens": {},
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:bfdd7abedb776e51ee247a6d32ee63408f14b8dd25ff0522cd6e28935ef54113
3
+ size 5304
vocab.txt ADDED
The diff for this file is too large to render. See raw diff