add model
Browse files- .gitignore +1 -0
- README.md +83 -0
- config.json +47 -0
- pytorch_model.bin +3 -0
- runs/Aug05_22-33-12_ip-172-31-23-147/1628202798.1075165/events.out.tfevents.1628202798.ip-172-31-23-147.6522.1 +3 -0
- runs/Aug05_22-33-12_ip-172-31-23-147/events.out.tfevents.1628202798.ip-172-31-23-147.6522.0 +3 -0
- runs/Aug05_22-33-12_ip-172-31-23-147/events.out.tfevents.1628203219.ip-172-31-23-147.6522.2 +3 -0
- special_tokens_map.json +1 -0
- tokenizer.json +0 -0
- tokenizer_config.json +1 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
.gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
checkpoint-*/
|
README.md
ADDED
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
datasets:
|
6 |
+
- conll2003
|
7 |
+
metrics:
|
8 |
+
- precision
|
9 |
+
- recall
|
10 |
+
- f1
|
11 |
+
- accuracy
|
12 |
+
model_index:
|
13 |
+
- name: ner_conll2003
|
14 |
+
results:
|
15 |
+
- task:
|
16 |
+
name: Token Classification
|
17 |
+
type: token-classification
|
18 |
+
dataset:
|
19 |
+
name: conll2003
|
20 |
+
type: conll2003
|
21 |
+
args: conll2003
|
22 |
+
metric:
|
23 |
+
name: Accuracy
|
24 |
+
type: accuracy
|
25 |
+
value: 0.9769764744577354
|
26 |
+
---
|
27 |
+
|
28 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
29 |
+
should probably proofread and complete it, then remove this comment. -->
|
30 |
+
|
31 |
+
# ner_conll2003
|
32 |
+
|
33 |
+
This model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) on the conll2003 dataset.
|
34 |
+
It achieves the following results on the evaluation set:
|
35 |
+
- Loss: 0.1551
|
36 |
+
- Precision: 0.8966
|
37 |
+
- Recall: 0.9065
|
38 |
+
- F1: 0.9015
|
39 |
+
- Accuracy: 0.9770
|
40 |
+
|
41 |
+
## Model description
|
42 |
+
|
43 |
+
More information needed
|
44 |
+
|
45 |
+
## Intended uses & limitations
|
46 |
+
|
47 |
+
More information needed
|
48 |
+
|
49 |
+
## Training and evaluation data
|
50 |
+
|
51 |
+
More information needed
|
52 |
+
|
53 |
+
## Training procedure
|
54 |
+
|
55 |
+
### Training hyperparameters
|
56 |
+
|
57 |
+
The following hyperparameters were used during training:
|
58 |
+
- learning_rate: 3e-05
|
59 |
+
- train_batch_size: 16
|
60 |
+
- eval_batch_size: 8
|
61 |
+
- seed: 42
|
62 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
63 |
+
- lr_scheduler_type: linear
|
64 |
+
- lr_scheduler_warmup_ratio: 0.1
|
65 |
+
- num_epochs: 5
|
66 |
+
|
67 |
+
### Training results
|
68 |
+
|
69 |
+
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|
70 |
+
|:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
|
71 |
+
| 0.3068 | 1.0 | 877 | 0.0589 | 0.9200 | 0.9388 | 0.9293 | 0.9837 |
|
72 |
+
| 0.0464 | 2.0 | 1754 | 0.0562 | 0.9298 | 0.9453 | 0.9375 | 0.9851 |
|
73 |
+
| 0.0233 | 3.0 | 2631 | 0.0559 | 0.9408 | 0.9472 | 0.9440 | 0.9865 |
|
74 |
+
| 0.0116 | 4.0 | 3508 | 0.0581 | 0.9421 | 0.9523 | 0.9472 | 0.9871 |
|
75 |
+
| 0.0068 | 5.0 | 4385 | 0.0620 | 0.9439 | 0.9521 | 0.9480 | 0.9871 |
|
76 |
+
|
77 |
+
|
78 |
+
### Framework versions
|
79 |
+
|
80 |
+
- Transformers 4.9.1
|
81 |
+
- Pytorch 1.9.0+cu102
|
82 |
+
- Datasets 1.11.0
|
83 |
+
- Tokenizers 0.10.2
|
config.json
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "bert-base-uncased",
|
3 |
+
"architectures": [
|
4 |
+
"BertForTokenClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"gradient_checkpointing": false,
|
8 |
+
"hidden_act": "gelu",
|
9 |
+
"hidden_dropout_prob": 0.1,
|
10 |
+
"hidden_size": 768,
|
11 |
+
"id2label": {
|
12 |
+
"0": "O",
|
13 |
+
"1": "B-PER",
|
14 |
+
"2": "I-PER",
|
15 |
+
"3": "B-ORG",
|
16 |
+
"4": "I-ORG",
|
17 |
+
"5": "B-LOC",
|
18 |
+
"6": "I-LOC",
|
19 |
+
"7": "B-MISC",
|
20 |
+
"8": "I-MISC"
|
21 |
+
},
|
22 |
+
"initializer_range": 0.02,
|
23 |
+
"intermediate_size": 3072,
|
24 |
+
"label2id": {
|
25 |
+
"B-LOC": 5,
|
26 |
+
"B-MISC": 7,
|
27 |
+
"B-ORG": 3,
|
28 |
+
"B-PER": 1,
|
29 |
+
"I-LOC": 6,
|
30 |
+
"I-MISC": 8,
|
31 |
+
"I-ORG": 4,
|
32 |
+
"I-PER": 2,
|
33 |
+
"O": 0
|
34 |
+
},
|
35 |
+
"layer_norm_eps": 1e-12,
|
36 |
+
"max_position_embeddings": 512,
|
37 |
+
"model_type": "bert",
|
38 |
+
"num_attention_heads": 12,
|
39 |
+
"num_hidden_layers": 12,
|
40 |
+
"pad_token_id": 0,
|
41 |
+
"position_embedding_type": "absolute",
|
42 |
+
"torch_dtype": "float32",
|
43 |
+
"transformers_version": "4.9.1",
|
44 |
+
"type_vocab_size": 2,
|
45 |
+
"use_cache": true,
|
46 |
+
"vocab_size": 30522
|
47 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:78429ee037a29820396fdfee6e6b08ffdf193e4741e93821887d6b45c9fdbe4f
|
3 |
+
size 435677681
|
runs/Aug05_22-33-12_ip-172-31-23-147/1628202798.1075165/events.out.tfevents.1628202798.ip-172-31-23-147.6522.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:13845b6a4d3d7f64e44696d4552b5f7895840f6a309b83ba39614e5135bd87bf
|
3 |
+
size 4235
|
runs/Aug05_22-33-12_ip-172-31-23-147/events.out.tfevents.1628202798.ip-172-31-23-147.6522.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:35b5a9fa13a8d6a2bbb466ce09499fef775025a03dd620ed298ebd505385045f
|
3 |
+
size 6801
|
runs/Aug05_22-33-12_ip-172-31-23-147/events.out.tfevents.1628203219.ip-172-31-23-147.6522.2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bafcbf1906c9f78efe314230f8c9aad7a4be3a3afd244e95311663a9faf6d65a
|
3 |
+
size 512
|
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, "model_max_length": 512, "special_tokens_map_file": null, "name_or_path": "bert-base-uncased", "tokenizer_class": "BertTokenizer"}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c1b05606cc4a361f1fa02aa2237857db792bd5d06103cb09f435c5567d586513
|
3 |
+
size 2671
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|