Zhou Yucheng
commited on
Commit
β’
aa4f325
1
Parent(s):
b508c18
first model version
Browse files- README.md +70 -0
- added_tokens.json +1 -0
- config.json +43 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +1 -0
- tokenizer.json +0 -0
- tokenizer_config.json +1 -0
- vocab.txt +0 -0
README.md
CHANGED
@@ -1,3 +1,73 @@
|
|
1 |
---
|
2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: apache-2.0
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
metrics:
|
6 |
+
- precision
|
7 |
+
- recall
|
8 |
+
- f1
|
9 |
+
- accuracy
|
10 |
+
model-index:
|
11 |
+
- name: macbert-finetuned-ner-drugname
|
12 |
+
results: []
|
13 |
---
|
14 |
+
|
15 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
16 |
+
should probably proofread and complete it, then remove this comment. -->
|
17 |
+
|
18 |
+
# macbert-finetuned-ner-drugname
|
19 |
+
|
20 |
+
This model is a fine-tuned version of [shibing624/macbert4csc-base-chinese](https://huggingface.co/shibing624/macbert4csc-base-chinese) on an unknown dataset.
|
21 |
+
It achieves the following results on the evaluation set:
|
22 |
+
- Loss: 0.0195
|
23 |
+
- Precision: 0.0
|
24 |
+
- Recall: 0.0
|
25 |
+
- F1: 0.0
|
26 |
+
- Accuracy: 0.9971
|
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: 5e-05
|
46 |
+
- train_batch_size: 16
|
47 |
+
- eval_batch_size: 16
|
48 |
+
- seed: 42
|
49 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
50 |
+
- lr_scheduler_type: linear
|
51 |
+
- num_epochs: 8.0
|
52 |
+
- mixed_precision_training: Native AMP
|
53 |
+
|
54 |
+
### Training results
|
55 |
+
|
56 |
+
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|
57 |
+
|:-------------:|:-----:|:------:|:---------------:|:---------:|:------:|:---:|:--------:|
|
58 |
+
| 0.0083 | 1.0 | 15362 | 0.0108 | 0.0 | 0.0 | 0.0 | 0.9964 |
|
59 |
+
| 0.0053 | 2.0 | 30724 | 0.0116 | 0.0 | 0.0 | 0.0 | 0.9963 |
|
60 |
+
| 0.0037 | 3.0 | 46086 | 0.0091 | 0.0 | 0.0 | 0.0 | 0.9977 |
|
61 |
+
| 0.0022 | 4.0 | 61448 | 0.0112 | 0.0 | 0.0 | 0.0 | 0.9975 |
|
62 |
+
| 0.0017 | 5.0 | 76810 | 0.0150 | 0.0 | 0.0 | 0.0 | 0.9970 |
|
63 |
+
| 0.0008 | 6.0 | 92172 | 0.0175 | 0.0 | 0.0 | 0.0 | 0.9971 |
|
64 |
+
| 0.0005 | 7.0 | 107534 | 0.0172 | 0.0 | 0.0 | 0.0 | 0.9971 |
|
65 |
+
| 0.0002 | 8.0 | 122896 | 0.0195 | 0.0 | 0.0 | 0.0 | 0.9971 |
|
66 |
+
|
67 |
+
|
68 |
+
### Framework versions
|
69 |
+
|
70 |
+
- Transformers 4.15.0
|
71 |
+
- Pytorch 1.10.1+cu113
|
72 |
+
- Datasets 1.17.0
|
73 |
+
- Tokenizers 0.10.3
|
added_tokens.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"##η²": 21158, "##η": 21161, "##θ§": 21155, "##ε": 21169, "##θΊ": 21156, "η¬": 21142, "##ζ°": 21153, "θ": 21129, "##θ¨": 21159, "##η°": 21162, "##ι
": 21166, "ηΌ¬": 21146, "##ζΏ": 21152, "η°": 21141, "##η¬": 21163, "##ε²": 21168, "ε²": 21147, "##θΌ": 21157, "##η ": 21154, "##θ": 21150, "θ¨": 21138, "ε·―": 21144, "θ§": 21134, "θ": 21128, "ε": 21148, "##η€": 21164, "##θ": 21149, "η ": 21133, "η€": 21143, "θΌ": 21136, "η": 21140, "ζΏ": 21131, "##ηΌ¬": 21167, "ι": 21130, "##ε·―": 21165, "ζ°": 21132, "θͺ": 21139, "η²": 21137, "##ι": 21151, "θΊ": 21135, "##θͺ": 21160, "ι
": 21145}
|
config.json
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "shibing624/macbert4csc-base-chinese",
|
3 |
+
"architectures": [
|
4 |
+
"BertForTokenClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"directionality": "bidi",
|
9 |
+
"finetuning_task": "ner",
|
10 |
+
"gradient_checkpointing": false,
|
11 |
+
"hidden_act": "gelu",
|
12 |
+
"hidden_dropout_prob": 0.1,
|
13 |
+
"hidden_size": 768,
|
14 |
+
"id2label": {
|
15 |
+
"0": 0,
|
16 |
+
"1": 1,
|
17 |
+
"2": 2
|
18 |
+
},
|
19 |
+
"initializer_range": 0.02,
|
20 |
+
"intermediate_size": 3072,
|
21 |
+
"label2id": {
|
22 |
+
"0": 0,
|
23 |
+
"1": 1,
|
24 |
+
"2": 2
|
25 |
+
},
|
26 |
+
"layer_norm_eps": 1e-12,
|
27 |
+
"max_position_embeddings": 512,
|
28 |
+
"model_type": "bert",
|
29 |
+
"num_attention_heads": 12,
|
30 |
+
"num_hidden_layers": 12,
|
31 |
+
"pad_token_id": 0,
|
32 |
+
"pooler_fc_size": 768,
|
33 |
+
"pooler_num_attention_heads": 12,
|
34 |
+
"pooler_num_fc_layers": 3,
|
35 |
+
"pooler_size_per_head": 128,
|
36 |
+
"pooler_type": "first_token_transform",
|
37 |
+
"position_embedding_type": "absolute",
|
38 |
+
"torch_dtype": "float32",
|
39 |
+
"transformers_version": "4.15.0",
|
40 |
+
"type_vocab_size": 2,
|
41 |
+
"use_cache": true,
|
42 |
+
"vocab_size": 21170
|
43 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ea880e5f75542569dfb660af06f3eb72ef098830654c022daaeef8ece3dc1dca
|
3 |
+
size 406929905
|
special_tokens_map.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]"}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"do_lower_case": true, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": null, "do_basic_tokenize": true, "never_split": null, "name_or_path": "shibing624/macbert4csc-base-chinese", "special_tokens_map_file": "cache\\5559a99a8a2784cef7bf4784ffdb8f0ec2df952f0ca49d9aa3c7f46530fbc8ef.dd8bd9bfd3664b530ea4e645105f557769387b3da9f79bdb55ed556bdd80611d", "tokenizer_class": "BertTokenizer"}
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|