VampeeHuntee commited on
Commit
5c5f587
1 Parent(s): 47b510b

End of training

Browse files
README.md ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - vi
4
+ base_model: vinai/phobert-base-v2
5
+ tags:
6
+ - generated_from_trainer
7
+ model-index:
8
+ - name: phobert-base-v2_baseline_words
9
+ results: []
10
+ ---
11
+
12
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
13
+ should probably proofread and complete it, then remove this comment. -->
14
+
15
+ # phobert-base-v2_baseline_words
16
+
17
+ This model is a fine-tuned version of [vinai/phobert-base-v2](https://huggingface.co/vinai/phobert-base-v2) on the covid19_ner dataset.
18
+ It achieves the following results on the evaluation set:
19
+ - Loss: 0.0874
20
+ - Patient Id: 0.9824
21
+ - Name: 0.9415
22
+ - Gender: 0.9647
23
+ - Age: 0.9502
24
+ - Job: 0.8000
25
+ - Location: 0.9509
26
+ - Organization: 0.9148
27
+ - Date: 0.9860
28
+ - Symptom And Disease: 0.8863
29
+ - Transportation: 1.0
30
+ - F1 Macro: 0.9377
31
+ - F1 Micro: 0.9503
32
+
33
+ ## Model description
34
+
35
+ More information needed
36
+
37
+ ## Intended uses & limitations
38
+
39
+ More information needed
40
+
41
+ ## Training and evaluation data
42
+
43
+ More information needed
44
+
45
+ ## Training procedure
46
+
47
+ ### Training hyperparameters
48
+
49
+ The following hyperparameters were used during training:
50
+ - learning_rate: 2e-05
51
+ - train_batch_size: 8
52
+ - eval_batch_size: 8
53
+ - seed: 42
54
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
55
+ - lr_scheduler_type: linear
56
+ - num_epochs: 5
57
+
58
+ ### Training results
59
+
60
+ | Training Loss | Epoch | Step | Validation Loss | Patient Id | Name | Gender | Age | Job | Location | Organization | Date | Symptom And Disease | Transportation | F1 Macro | F1 Micro |
61
+ |:-------------:|:-----:|:----:|:---------------:|:----------:|:------:|:------:|:------:|:------:|:--------:|:------------:|:------:|:-------------------:|:--------------:|:--------:|:--------:|
62
+ | 0.4337 | 1.0 | 629 | 0.1664 | 0.9739 | 0.9446 | 0.7794 | 0.9010 | 0.0 | 0.9341 | 0.8413 | 0.9851 | 0.8585 | 0.9885 | 0.8206 | 0.9172 |
63
+ | 0.1019 | 2.0 | 1258 | 0.1071 | 0.9770 | 0.9340 | 0.9640 | 0.9644 | 0.5412 | 0.9460 | 0.8823 | 0.9865 | 0.8771 | 1.0 | 0.9072 | 0.9402 |
64
+ | 0.0639 | 3.0 | 1887 | 0.0952 | 0.9797 | 0.928 | 0.9647 | 0.9682 | 0.5799 | 0.9488 | 0.9094 | 0.9847 | 0.8814 | 1.0 | 0.9145 | 0.9445 |
65
+ | 0.0454 | 4.0 | 2516 | 0.0873 | 0.9820 | 0.9365 | 0.9663 | 0.9632 | 0.7734 | 0.9537 | 0.9075 | 0.9851 | 0.8832 | 1.0 | 0.9351 | 0.9503 |
66
+ | 0.0365 | 5.0 | 3145 | 0.0874 | 0.9824 | 0.9415 | 0.9647 | 0.9502 | 0.8000 | 0.9509 | 0.9148 | 0.9860 | 0.8863 | 1.0 | 0.9377 | 0.9503 |
67
+
68
+
69
+ ### Framework versions
70
+
71
+ - Transformers 4.41.2
72
+ - Pytorch 2.1.2
73
+ - Datasets 2.19.2
74
+ - Tokenizers 0.19.1
added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "<mask>": 64000
3
+ }
bpe.codes ADDED
The diff for this file is too large to render. See raw diff
 
config.json ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "vinai/phobert-base-v2",
3
+ "architectures": [
4
+ "RobertaForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "eos_token_id": 2,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "id2label": {
14
+ "0": "O",
15
+ "1": "B-PATIENT_ID",
16
+ "2": "I-PATIENT_ID",
17
+ "3": "B-NAME",
18
+ "4": "I-NAME",
19
+ "5": "B-GENDER",
20
+ "6": "I-GENDER",
21
+ "7": "B-AGE",
22
+ "8": "I-AGE",
23
+ "9": "B-JOB",
24
+ "10": "I-JOB",
25
+ "11": "B-LOCATION",
26
+ "12": "I-LOCATION",
27
+ "13": "B-ORGANIZATION",
28
+ "14": "I-ORGANIZATION",
29
+ "15": "B-DATE",
30
+ "16": "I-DATE",
31
+ "17": "B-SYMPTOM_AND_DISEASE",
32
+ "18": "I-SYMPTOM_AND_DISEASE",
33
+ "19": "B-TRANSPORTATION",
34
+ "20": "I-TRANSPORTATION"
35
+ },
36
+ "initializer_range": 0.02,
37
+ "intermediate_size": 3072,
38
+ "label2id": {
39
+ "B-AGE": 7,
40
+ "B-DATE": 15,
41
+ "B-GENDER": 5,
42
+ "B-JOB": 9,
43
+ "B-LOCATION": 11,
44
+ "B-NAME": 3,
45
+ "B-ORGANIZATION": 13,
46
+ "B-PATIENT_ID": 1,
47
+ "B-SYMPTOM_AND_DISEASE": 17,
48
+ "B-TRANSPORTATION": 19,
49
+ "I-AGE": 8,
50
+ "I-DATE": 16,
51
+ "I-GENDER": 6,
52
+ "I-JOB": 10,
53
+ "I-LOCATION": 12,
54
+ "I-NAME": 4,
55
+ "I-ORGANIZATION": 14,
56
+ "I-PATIENT_ID": 2,
57
+ "I-SYMPTOM_AND_DISEASE": 18,
58
+ "I-TRANSPORTATION": 20,
59
+ "O": 0
60
+ },
61
+ "layer_norm_eps": 1e-05,
62
+ "max_position_embeddings": 258,
63
+ "model_type": "roberta",
64
+ "num_attention_heads": 12,
65
+ "num_hidden_layers": 12,
66
+ "pad_token_id": 1,
67
+ "position_embedding_type": "absolute",
68
+ "tokenizer_class": "PhobertTokenizer",
69
+ "torch_dtype": "float32",
70
+ "transformers_version": "4.41.2",
71
+ "type_vocab_size": 1,
72
+ "use_cache": true,
73
+ "vocab_size": 64001
74
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d0f5409783e7df8bb15258f5f22c6b10e1121e27626c54f9c4caef90bc8c7959
3
+ size 537719244
special_tokens_map.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<s>",
3
+ "cls_token": "<s>",
4
+ "eos_token": "</s>",
5
+ "mask_token": "<mask>",
6
+ "pad_token": "<pad>",
7
+ "sep_token": "</s>",
8
+ "unk_token": "<unk>"
9
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<s>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<pad>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "</s>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "<unk>",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "64000": {
36
+ "content": "<mask>",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "bos_token": "<s>",
45
+ "clean_up_tokenization_spaces": true,
46
+ "cls_token": "<s>",
47
+ "eos_token": "</s>",
48
+ "mask_token": "<mask>",
49
+ "model_max_length": 1000000000000000019884624838656,
50
+ "pad_token": "<pad>",
51
+ "sep_token": "</s>",
52
+ "tokenizer_class": "PhobertTokenizer",
53
+ "unk_token": "<unk>"
54
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:05c499048e81a48a15b89b4e07507c63e2f6ca739c8009a268f0bc23dceb0b2f
3
+ size 5176
vocab.txt ADDED
The diff for this file is too large to render. See raw diff