add model
Browse files- .gitignore +1 -0
- README.md +83 -0
- config.json +163 -0
- pytorch_model.bin +3 -0
- runs/Aug06_17-51-05_ip-172-31-23-147/1628272270.5875435/events.out.tfevents.1628272270.ip-172-31-23-147.9006.1 +3 -0
- runs/Aug06_17-51-05_ip-172-31-23-147/events.out.tfevents.1628272270.ip-172-31-23-147.9006.0 +3 -0
- runs/Aug06_17-51-05_ip-172-31-23-147/events.out.tfevents.1628276889.ip-172-31-23-147.9006.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 |
+
- nerd
|
| 7 |
+
metrics:
|
| 8 |
+
- precision
|
| 9 |
+
- recall
|
| 10 |
+
- f1
|
| 11 |
+
- accuracy
|
| 12 |
+
model_index:
|
| 13 |
+
- name: ner_nerd_fine
|
| 14 |
+
results:
|
| 15 |
+
- task:
|
| 16 |
+
name: Token Classification
|
| 17 |
+
type: token-classification
|
| 18 |
+
dataset:
|
| 19 |
+
name: nerd
|
| 20 |
+
type: nerd
|
| 21 |
+
args: nerd
|
| 22 |
+
metric:
|
| 23 |
+
name: Accuracy
|
| 24 |
+
type: accuracy
|
| 25 |
+
value: 0.907666728485449
|
| 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_nerd_fine
|
| 32 |
+
|
| 33 |
+
This model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) on the nerd dataset.
|
| 34 |
+
It achieves the following results on the evaluation set:
|
| 35 |
+
- Loss: 0.3754
|
| 36 |
+
- Precision: 0.6353
|
| 37 |
+
- Recall: 0.6808
|
| 38 |
+
- F1: 0.6573
|
| 39 |
+
- Accuracy: 0.9077
|
| 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.5486 | 1.0 | 8235 | 0.3279 | 0.6152 | 0.6643 | 0.6388 | 0.9034 |
|
| 72 |
+
| 0.286 | 2.0 | 16470 | 0.3147 | 0.6392 | 0.6702 | 0.6543 | 0.9076 |
|
| 73 |
+
| 0.2186 | 3.0 | 24705 | 0.3301 | 0.6402 | 0.6804 | 0.6597 | 0.9085 |
|
| 74 |
+
| 0.1662 | 4.0 | 32940 | 0.3450 | 0.6369 | 0.6818 | 0.6586 | 0.9081 |
|
| 75 |
+
| 0.1291 | 5.0 | 41175 | 0.3718 | 0.6398 | 0.6833 | 0.6608 | 0.9081 |
|
| 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,163 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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": "I-ART-broadcastprogram",
|
| 14 |
+
"2": "I-ART-film",
|
| 15 |
+
"3": "I-ART-music",
|
| 16 |
+
"4": "I-ART-other",
|
| 17 |
+
"5": "I-ART-painting",
|
| 18 |
+
"6": "I-ART-writtenart",
|
| 19 |
+
"7": "I-BUILDING-airport",
|
| 20 |
+
"8": "I-BUILDING-hospital",
|
| 21 |
+
"9": "I-BUILDING-hotel",
|
| 22 |
+
"10": "I-BUILDING-library",
|
| 23 |
+
"11": "I-BUILDING-other",
|
| 24 |
+
"12": "I-BUILDING-restaurant",
|
| 25 |
+
"13": "I-BUILDING-sportsfacility",
|
| 26 |
+
"14": "I-BUILDING-theater",
|
| 27 |
+
"15": "I-EVENT-attack/battle/war/militaryconflict",
|
| 28 |
+
"16": "I-EVENT-disaster",
|
| 29 |
+
"17": "I-EVENT-election",
|
| 30 |
+
"18": "I-EVENT-other",
|
| 31 |
+
"19": "I-EVENT-protest",
|
| 32 |
+
"20": "I-EVENT-sportsevent",
|
| 33 |
+
"21": "I-LOC-GPE",
|
| 34 |
+
"22": "I-LOC-bodiesofwater",
|
| 35 |
+
"23": "I-LOC-island",
|
| 36 |
+
"24": "I-LOC-mountain",
|
| 37 |
+
"25": "I-LOC-other",
|
| 38 |
+
"26": "I-LOC-park",
|
| 39 |
+
"27": "I-LOC-road/railway/highway/transit",
|
| 40 |
+
"28": "I-ORG-company",
|
| 41 |
+
"29": "I-ORG-education",
|
| 42 |
+
"30": "I-ORG-government/governmentagency",
|
| 43 |
+
"31": "I-ORG-media/newspaper",
|
| 44 |
+
"32": "I-ORG-other",
|
| 45 |
+
"33": "I-ORG-politicalparty",
|
| 46 |
+
"34": "I-ORG-religion",
|
| 47 |
+
"35": "I-ORG-showorganization",
|
| 48 |
+
"36": "I-ORG-sportsleague",
|
| 49 |
+
"37": "I-ORG-sportsteam",
|
| 50 |
+
"38": "I-MISC-astronomything",
|
| 51 |
+
"39": "I-MISC-award",
|
| 52 |
+
"40": "I-MISC-biologything",
|
| 53 |
+
"41": "I-MISC-chemicalthing",
|
| 54 |
+
"42": "I-MISC-currency",
|
| 55 |
+
"43": "I-MISC-disease",
|
| 56 |
+
"44": "I-MISC-educationaldegree",
|
| 57 |
+
"45": "I-MISC-god",
|
| 58 |
+
"46": "I-MISC-language",
|
| 59 |
+
"47": "I-MISC-law",
|
| 60 |
+
"48": "I-MISC-livingthing",
|
| 61 |
+
"49": "I-MISC-medical",
|
| 62 |
+
"50": "I-PER-actor",
|
| 63 |
+
"51": "I-PER-artist/author",
|
| 64 |
+
"52": "I-PER-athlete",
|
| 65 |
+
"53": "I-PER-director",
|
| 66 |
+
"54": "I-PER-other",
|
| 67 |
+
"55": "I-PER-politician",
|
| 68 |
+
"56": "I-PER-scholar",
|
| 69 |
+
"57": "I-PER-soldier",
|
| 70 |
+
"58": "I-PRODUCT-airplane",
|
| 71 |
+
"59": "I-PRODUCT-car",
|
| 72 |
+
"60": "I-PRODUCT-food",
|
| 73 |
+
"61": "I-PRODUCT-game",
|
| 74 |
+
"62": "I-PRODUCT-other",
|
| 75 |
+
"63": "I-PRODUCT-ship",
|
| 76 |
+
"64": "I-PRODUCT-software",
|
| 77 |
+
"65": "I-PRODUCT-train",
|
| 78 |
+
"66": "I-PRODUCT-weapon"
|
| 79 |
+
},
|
| 80 |
+
"initializer_range": 0.02,
|
| 81 |
+
"intermediate_size": 3072,
|
| 82 |
+
"label2id": {
|
| 83 |
+
"I-ART-broadcastprogram": 1,
|
| 84 |
+
"I-ART-film": 2,
|
| 85 |
+
"I-ART-music": 3,
|
| 86 |
+
"I-ART-other": 4,
|
| 87 |
+
"I-ART-painting": 5,
|
| 88 |
+
"I-ART-writtenart": 6,
|
| 89 |
+
"I-BUILDING-airport": 7,
|
| 90 |
+
"I-BUILDING-hospital": 8,
|
| 91 |
+
"I-BUILDING-hotel": 9,
|
| 92 |
+
"I-BUILDING-library": 10,
|
| 93 |
+
"I-BUILDING-other": 11,
|
| 94 |
+
"I-BUILDING-restaurant": 12,
|
| 95 |
+
"I-BUILDING-sportsfacility": 13,
|
| 96 |
+
"I-BUILDING-theater": 14,
|
| 97 |
+
"I-EVENT-attack/battle/war/militaryconflict": 15,
|
| 98 |
+
"I-EVENT-disaster": 16,
|
| 99 |
+
"I-EVENT-election": 17,
|
| 100 |
+
"I-EVENT-other": 18,
|
| 101 |
+
"I-EVENT-protest": 19,
|
| 102 |
+
"I-EVENT-sportsevent": 20,
|
| 103 |
+
"I-LOC-GPE": 21,
|
| 104 |
+
"I-LOC-bodiesofwater": 22,
|
| 105 |
+
"I-LOC-island": 23,
|
| 106 |
+
"I-LOC-mountain": 24,
|
| 107 |
+
"I-LOC-other": 25,
|
| 108 |
+
"I-LOC-park": 26,
|
| 109 |
+
"I-LOC-road/railway/highway/transit": 27,
|
| 110 |
+
"I-MISC-astronomything": 38,
|
| 111 |
+
"I-MISC-award": 39,
|
| 112 |
+
"I-MISC-biologything": 40,
|
| 113 |
+
"I-MISC-chemicalthing": 41,
|
| 114 |
+
"I-MISC-currency": 42,
|
| 115 |
+
"I-MISC-disease": 43,
|
| 116 |
+
"I-MISC-educationaldegree": 44,
|
| 117 |
+
"I-MISC-god": 45,
|
| 118 |
+
"I-MISC-language": 46,
|
| 119 |
+
"I-MISC-law": 47,
|
| 120 |
+
"I-MISC-livingthing": 48,
|
| 121 |
+
"I-MISC-medical": 49,
|
| 122 |
+
"I-ORG-company": 28,
|
| 123 |
+
"I-ORG-education": 29,
|
| 124 |
+
"I-ORG-government/governmentagency": 30,
|
| 125 |
+
"I-ORG-media/newspaper": 31,
|
| 126 |
+
"I-ORG-other": 32,
|
| 127 |
+
"I-ORG-politicalparty": 33,
|
| 128 |
+
"I-ORG-religion": 34,
|
| 129 |
+
"I-ORG-showorganization": 35,
|
| 130 |
+
"I-ORG-sportsleague": 36,
|
| 131 |
+
"I-ORG-sportsteam": 37,
|
| 132 |
+
"I-PER-actor": 50,
|
| 133 |
+
"I-PER-artist/author": 51,
|
| 134 |
+
"I-PER-athlete": 52,
|
| 135 |
+
"I-PER-director": 53,
|
| 136 |
+
"I-PER-other": 54,
|
| 137 |
+
"I-PER-politician": 55,
|
| 138 |
+
"I-PER-scholar": 56,
|
| 139 |
+
"I-PER-soldier": 57,
|
| 140 |
+
"I-PRODUCT-airplane": 58,
|
| 141 |
+
"I-PRODUCT-car": 59,
|
| 142 |
+
"I-PRODUCT-food": 60,
|
| 143 |
+
"I-PRODUCT-game": 61,
|
| 144 |
+
"I-PRODUCT-other": 62,
|
| 145 |
+
"I-PRODUCT-ship": 63,
|
| 146 |
+
"I-PRODUCT-software": 64,
|
| 147 |
+
"I-PRODUCT-train": 65,
|
| 148 |
+
"I-PRODUCT-weapon": 66,
|
| 149 |
+
"O": 0
|
| 150 |
+
},
|
| 151 |
+
"layer_norm_eps": 1e-12,
|
| 152 |
+
"max_position_embeddings": 512,
|
| 153 |
+
"model_type": "bert",
|
| 154 |
+
"num_attention_heads": 12,
|
| 155 |
+
"num_hidden_layers": 12,
|
| 156 |
+
"pad_token_id": 0,
|
| 157 |
+
"position_embedding_type": "absolute",
|
| 158 |
+
"torch_dtype": "float32",
|
| 159 |
+
"transformers_version": "4.9.1",
|
| 160 |
+
"type_vocab_size": 2,
|
| 161 |
+
"use_cache": true,
|
| 162 |
+
"vocab_size": 30522
|
| 163 |
+
}
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:43a614c0c6661455ee3d3c32b116229343fbd5cb0cbd2d4f5788a6911f9b26c5
|
| 3 |
+
size 435856113
|
runs/Aug06_17-51-05_ip-172-31-23-147/1628272270.5875435/events.out.tfevents.1628272270.ip-172-31-23-147.9006.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:57ae323c7622d3dea29b8fd4efce13c7fa5a6be535366f9f5f432359eaa28202
|
| 3 |
+
size 4214
|
runs/Aug06_17-51-05_ip-172-31-23-147/events.out.tfevents.1628272270.ip-172-31-23-147.9006.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b2f593ad3136f8932d28c19630f6579ec3d3ff83b8d257388cbff0a4c4bc5e53
|
| 3 |
+
size 10430
|
runs/Aug06_17-51-05_ip-172-31-23-147/events.out.tfevents.1628276889.ip-172-31-23-147.9006.2
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e1dc890f6707c7924c5df4a6dec3cc1586c1a04df96faf8cc4d68bd070d08e83
|
| 3 |
+
size 521
|
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:2ac04fdef66105a39ad34870b24f4f33e177844b76833594869fd5afd1c02e96
|
| 3 |
+
size 2607
|
vocab.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|