VampeeHuntee
commited on
Commit
•
3645e8c
1
Parent(s):
f323b05
End of training
Browse files- README.md +75 -0
- config.json +77 -0
- model.safetensors +3 -0
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +55 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- vi
|
4 |
+
license: apache-2.0
|
5 |
+
base_model: google-bert/bert-base-multilingual-cased
|
6 |
+
tags:
|
7 |
+
- generated_from_trainer
|
8 |
+
model-index:
|
9 |
+
- name: bert-base-multilingual-cased_baseline_words
|
10 |
+
results: []
|
11 |
+
---
|
12 |
+
|
13 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
14 |
+
should probably proofread and complete it, then remove this comment. -->
|
15 |
+
|
16 |
+
# bert-base-multilingual-cased_baseline_words
|
17 |
+
|
18 |
+
This model is a fine-tuned version of [google-bert/bert-base-multilingual-cased](https://huggingface.co/google-bert/bert-base-multilingual-cased) on the covid19_ner dataset.
|
19 |
+
It achieves the following results on the evaluation set:
|
20 |
+
- Loss: 0.0998
|
21 |
+
- Patient Id: 0.9840
|
22 |
+
- Name: 0.9182
|
23 |
+
- Gender: 0.9623
|
24 |
+
- Age: 0.9725
|
25 |
+
- Job: 0.7799
|
26 |
+
- Location: 0.9501
|
27 |
+
- Organization: 0.8965
|
28 |
+
- Date: 0.9869
|
29 |
+
- Symptom And Disease: 0.8626
|
30 |
+
- Transportation: 0.9885
|
31 |
+
- F1 Macro: 0.9302
|
32 |
+
- F1 Micro: 0.9466
|
33 |
+
|
34 |
+
## Model description
|
35 |
+
|
36 |
+
More information needed
|
37 |
+
|
38 |
+
## Intended uses & limitations
|
39 |
+
|
40 |
+
More information needed
|
41 |
+
|
42 |
+
## Training and evaluation data
|
43 |
+
|
44 |
+
More information needed
|
45 |
+
|
46 |
+
## Training procedure
|
47 |
+
|
48 |
+
### Training hyperparameters
|
49 |
+
|
50 |
+
The following hyperparameters were used during training:
|
51 |
+
- learning_rate: 2e-05
|
52 |
+
- train_batch_size: 8
|
53 |
+
- eval_batch_size: 8
|
54 |
+
- seed: 42
|
55 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
56 |
+
- lr_scheduler_type: linear
|
57 |
+
- num_epochs: 5
|
58 |
+
|
59 |
+
### Training results
|
60 |
+
|
61 |
+
| Training Loss | Epoch | Step | Validation Loss | Patient Id | Name | Gender | Age | Job | Location | Organization | Date | Symptom And Disease | Transportation | F1 Macro | F1 Micro |
|
62 |
+
|:-------------:|:-----:|:----:|:---------------:|:----------:|:------:|:------:|:------:|:------:|:--------:|:------------:|:------:|:-------------------:|:--------------:|:--------:|:--------:|
|
63 |
+
| 0.1996 | 1.0 | 629 | 0.1207 | 0.9728 | 0.8997 | 0.8414 | 0.9018 | 0.5020 | 0.9030 | 0.7496 | 0.9847 | 0.8064 | 0.9053 | 0.8467 | 0.8959 |
|
64 |
+
| 0.0584 | 2.0 | 1258 | 0.0978 | 0.9793 | 0.9101 | 0.9476 | 0.9726 | 0.5044 | 0.9380 | 0.8738 | 0.9860 | 0.8433 | 0.9091 | 0.8864 | 0.9319 |
|
65 |
+
| 0.0344 | 3.0 | 1887 | 0.0925 | 0.9776 | 0.9125 | 0.9455 | 0.9766 | 0.7216 | 0.9417 | 0.8665 | 0.9865 | 0.8634 | 0.9655 | 0.9157 | 0.9383 |
|
66 |
+
| 0.0222 | 4.0 | 2516 | 0.0971 | 0.9836 | 0.9178 | 0.9556 | 0.9739 | 0.7442 | 0.9493 | 0.8883 | 0.9865 | 0.8579 | 0.9943 | 0.9251 | 0.9443 |
|
67 |
+
| 0.0147 | 5.0 | 3145 | 0.0998 | 0.9840 | 0.9182 | 0.9623 | 0.9725 | 0.7799 | 0.9501 | 0.8965 | 0.9869 | 0.8626 | 0.9885 | 0.9302 | 0.9466 |
|
68 |
+
|
69 |
+
|
70 |
+
### Framework versions
|
71 |
+
|
72 |
+
- Transformers 4.41.2
|
73 |
+
- Pytorch 2.1.2
|
74 |
+
- Datasets 2.19.2
|
75 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "google-bert/bert-base-multilingual-cased",
|
3 |
+
"architectures": [
|
4 |
+
"BertForTokenClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"directionality": "bidi",
|
9 |
+
"hidden_act": "gelu",
|
10 |
+
"hidden_dropout_prob": 0.1,
|
11 |
+
"hidden_size": 768,
|
12 |
+
"id2label": {
|
13 |
+
"0": "O",
|
14 |
+
"1": "B-PATIENT_ID",
|
15 |
+
"2": "I-PATIENT_ID",
|
16 |
+
"3": "B-NAME",
|
17 |
+
"4": "I-NAME",
|
18 |
+
"5": "B-GENDER",
|
19 |
+
"6": "I-GENDER",
|
20 |
+
"7": "B-AGE",
|
21 |
+
"8": "I-AGE",
|
22 |
+
"9": "B-JOB",
|
23 |
+
"10": "I-JOB",
|
24 |
+
"11": "B-LOCATION",
|
25 |
+
"12": "I-LOCATION",
|
26 |
+
"13": "B-ORGANIZATION",
|
27 |
+
"14": "I-ORGANIZATION",
|
28 |
+
"15": "B-DATE",
|
29 |
+
"16": "I-DATE",
|
30 |
+
"17": "B-SYMPTOM_AND_DISEASE",
|
31 |
+
"18": "I-SYMPTOM_AND_DISEASE",
|
32 |
+
"19": "B-TRANSPORTATION",
|
33 |
+
"20": "I-TRANSPORTATION"
|
34 |
+
},
|
35 |
+
"initializer_range": 0.02,
|
36 |
+
"intermediate_size": 3072,
|
37 |
+
"label2id": {
|
38 |
+
"B-AGE": 7,
|
39 |
+
"B-DATE": 15,
|
40 |
+
"B-GENDER": 5,
|
41 |
+
"B-JOB": 9,
|
42 |
+
"B-LOCATION": 11,
|
43 |
+
"B-NAME": 3,
|
44 |
+
"B-ORGANIZATION": 13,
|
45 |
+
"B-PATIENT_ID": 1,
|
46 |
+
"B-SYMPTOM_AND_DISEASE": 17,
|
47 |
+
"B-TRANSPORTATION": 19,
|
48 |
+
"I-AGE": 8,
|
49 |
+
"I-DATE": 16,
|
50 |
+
"I-GENDER": 6,
|
51 |
+
"I-JOB": 10,
|
52 |
+
"I-LOCATION": 12,
|
53 |
+
"I-NAME": 4,
|
54 |
+
"I-ORGANIZATION": 14,
|
55 |
+
"I-PATIENT_ID": 2,
|
56 |
+
"I-SYMPTOM_AND_DISEASE": 18,
|
57 |
+
"I-TRANSPORTATION": 20,
|
58 |
+
"O": 0
|
59 |
+
},
|
60 |
+
"layer_norm_eps": 1e-12,
|
61 |
+
"max_position_embeddings": 512,
|
62 |
+
"model_type": "bert",
|
63 |
+
"num_attention_heads": 12,
|
64 |
+
"num_hidden_layers": 12,
|
65 |
+
"pad_token_id": 0,
|
66 |
+
"pooler_fc_size": 768,
|
67 |
+
"pooler_num_attention_heads": 12,
|
68 |
+
"pooler_num_fc_layers": 3,
|
69 |
+
"pooler_size_per_head": 128,
|
70 |
+
"pooler_type": "first_token_transform",
|
71 |
+
"position_embedding_type": "absolute",
|
72 |
+
"torch_dtype": "float32",
|
73 |
+
"transformers_version": "4.41.2",
|
74 |
+
"type_vocab_size": 2,
|
75 |
+
"use_cache": true,
|
76 |
+
"vocab_size": 119547
|
77 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6a726ad5102177ef8b0f174aeb445ba59215ecc65c8cee634740c7640ae9da16
|
3 |
+
size 709139348
|
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": true,
|
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:a6a659ad7fb34966a685af092f77459c54019dc31509865ae62b7e7542c63ea0
|
3 |
+
size 5240
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|