VampeeHuntee
commited on
Commit
•
009cfdd
1
Parent(s):
551462f
End of training
Browse files- README.md +74 -0
- added_tokens.json +3 -0
- bpe.codes +0 -0
- config.json +75 -0
- model.safetensors +3 -0
- special_tokens_map.json +9 -0
- tokenizer_config.json +54 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- vi
|
4 |
+
base_model: vinai/phobert-base
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
model-index:
|
8 |
+
- name: phobert-base_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_baseline_words
|
16 |
+
|
17 |
+
This model is a fine-tuned version of [vinai/phobert-base](https://huggingface.co/vinai/phobert-base) on the covid19_ner dataset.
|
18 |
+
It achieves the following results on the evaluation set:
|
19 |
+
- Loss: 0.0829
|
20 |
+
- Patient Id: 0.9848
|
21 |
+
- Name: 0.9421
|
22 |
+
- Gender: 0.9570
|
23 |
+
- Age: 0.9766
|
24 |
+
- Job: 0.8095
|
25 |
+
- Location: 0.9448
|
26 |
+
- Organization: 0.9078
|
27 |
+
- Date: 0.9869
|
28 |
+
- Symptom And Disease: 0.8923
|
29 |
+
- Transportation: 0.9943
|
30 |
+
- F1 Macro: 0.9396
|
31 |
+
- F1 Micro: 0.9498
|
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.2964 | 1.0 | 629 | 0.1215 | 0.9689 | 0.9534 | 0.9107 | 0.8987 | 0.5357 | 0.9350 | 0.8368 | 0.9856 | 0.8584 | 0.9667 | 0.8850 | 0.9251 |
|
63 |
+
| 0.068 | 2.0 | 1258 | 0.0890 | 0.9844 | 0.9479 | 0.9487 | 0.9723 | 0.6167 | 0.9377 | 0.8815 | 0.9860 | 0.8835 | 0.9886 | 0.9147 | 0.9409 |
|
64 |
+
| 0.0441 | 3.0 | 1887 | 0.0847 | 0.9828 | 0.9446 | 0.9554 | 0.9737 | 0.7570 | 0.9445 | 0.9062 | 0.9874 | 0.8909 | 0.9943 | 0.9337 | 0.9482 |
|
65 |
+
| 0.0327 | 4.0 | 2516 | 0.0859 | 0.9859 | 0.9449 | 0.9570 | 0.9765 | 0.7778 | 0.9451 | 0.9062 | 0.9874 | 0.8914 | 0.9943 | 0.9366 | 0.9495 |
|
66 |
+
| 0.0259 | 5.0 | 3145 | 0.0829 | 0.9848 | 0.9421 | 0.9570 | 0.9766 | 0.8095 | 0.9448 | 0.9078 | 0.9869 | 0.8923 | 0.9943 | 0.9396 | 0.9498 |
|
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,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "vinai/phobert-base",
|
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 |
+
"gradient_checkpointing": false,
|
11 |
+
"hidden_act": "gelu",
|
12 |
+
"hidden_dropout_prob": 0.1,
|
13 |
+
"hidden_size": 768,
|
14 |
+
"id2label": {
|
15 |
+
"0": "O",
|
16 |
+
"1": "B-PATIENT_ID",
|
17 |
+
"2": "I-PATIENT_ID",
|
18 |
+
"3": "B-NAME",
|
19 |
+
"4": "I-NAME",
|
20 |
+
"5": "B-GENDER",
|
21 |
+
"6": "I-GENDER",
|
22 |
+
"7": "B-AGE",
|
23 |
+
"8": "I-AGE",
|
24 |
+
"9": "B-JOB",
|
25 |
+
"10": "I-JOB",
|
26 |
+
"11": "B-LOCATION",
|
27 |
+
"12": "I-LOCATION",
|
28 |
+
"13": "B-ORGANIZATION",
|
29 |
+
"14": "I-ORGANIZATION",
|
30 |
+
"15": "B-DATE",
|
31 |
+
"16": "I-DATE",
|
32 |
+
"17": "B-SYMPTOM_AND_DISEASE",
|
33 |
+
"18": "I-SYMPTOM_AND_DISEASE",
|
34 |
+
"19": "B-TRANSPORTATION",
|
35 |
+
"20": "I-TRANSPORTATION"
|
36 |
+
},
|
37 |
+
"initializer_range": 0.02,
|
38 |
+
"intermediate_size": 3072,
|
39 |
+
"label2id": {
|
40 |
+
"B-AGE": 7,
|
41 |
+
"B-DATE": 15,
|
42 |
+
"B-GENDER": 5,
|
43 |
+
"B-JOB": 9,
|
44 |
+
"B-LOCATION": 11,
|
45 |
+
"B-NAME": 3,
|
46 |
+
"B-ORGANIZATION": 13,
|
47 |
+
"B-PATIENT_ID": 1,
|
48 |
+
"B-SYMPTOM_AND_DISEASE": 17,
|
49 |
+
"B-TRANSPORTATION": 19,
|
50 |
+
"I-AGE": 8,
|
51 |
+
"I-DATE": 16,
|
52 |
+
"I-GENDER": 6,
|
53 |
+
"I-JOB": 10,
|
54 |
+
"I-LOCATION": 12,
|
55 |
+
"I-NAME": 4,
|
56 |
+
"I-ORGANIZATION": 14,
|
57 |
+
"I-PATIENT_ID": 2,
|
58 |
+
"I-SYMPTOM_AND_DISEASE": 18,
|
59 |
+
"I-TRANSPORTATION": 20,
|
60 |
+
"O": 0
|
61 |
+
},
|
62 |
+
"layer_norm_eps": 1e-05,
|
63 |
+
"max_position_embeddings": 258,
|
64 |
+
"model_type": "roberta",
|
65 |
+
"num_attention_heads": 12,
|
66 |
+
"num_hidden_layers": 12,
|
67 |
+
"pad_token_id": 1,
|
68 |
+
"position_embedding_type": "absolute",
|
69 |
+
"tokenizer_class": "PhobertTokenizer",
|
70 |
+
"torch_dtype": "float32",
|
71 |
+
"transformers_version": "4.41.2",
|
72 |
+
"type_vocab_size": 1,
|
73 |
+
"use_cache": true,
|
74 |
+
"vocab_size": 64001
|
75 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7c678d64ed6172d778bb38b11a38b567bfe624107d3a78086524df06cbcb1f0d
|
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:a056c5f10e119237e5d0caee446fb63ca9819729a18ba573d49ca5561afa5776
|
3 |
+
size 5176
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|