End of training
Browse files- README.md +72 -0
- config.json +130 -0
- model.safetensors +3 -0
- runs/Dec12_22-37-18_a365e7b9463b/events.out.tfevents.1734043038.a365e7b9463b.6288.7 +3 -0
- runs/Dec12_22-38-28_a365e7b9463b/events.out.tfevents.1734043108.a365e7b9463b.6288.8 +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,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
license: apache-2.0
|
4 |
+
base_model: bert-base-uncased
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
metrics:
|
8 |
+
- accuracy
|
9 |
+
model-index:
|
10 |
+
- name: bert-base-uncased-grammar-ner
|
11 |
+
results: []
|
12 |
+
---
|
13 |
+
|
14 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
15 |
+
should probably proofread and complete it, then remove this comment. -->
|
16 |
+
|
17 |
+
# bert-base-uncased-grammar-ner
|
18 |
+
|
19 |
+
This model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) on an unknown dataset.
|
20 |
+
It achieves the following results on the evaluation set:
|
21 |
+
- Loss: 0.1112
|
22 |
+
- Accuracy: 0.9887
|
23 |
+
- F1 Macro: 0.7886
|
24 |
+
- F1 Micro: 0.9888
|
25 |
+
- Precision Macro: 0.8418
|
26 |
+
- Precision Micro: 0.9887
|
27 |
+
- Recall Macro: 0.7568
|
28 |
+
- Recall Micro: 0.9889
|
29 |
+
|
30 |
+
## Model description
|
31 |
+
|
32 |
+
More information needed
|
33 |
+
|
34 |
+
## Intended uses & limitations
|
35 |
+
|
36 |
+
More information needed
|
37 |
+
|
38 |
+
## Training and evaluation data
|
39 |
+
|
40 |
+
More information needed
|
41 |
+
|
42 |
+
## Training procedure
|
43 |
+
|
44 |
+
### Training hyperparameters
|
45 |
+
|
46 |
+
The following hyperparameters were used during training:
|
47 |
+
- learning_rate: 5e-05
|
48 |
+
- train_batch_size: 24
|
49 |
+
- eval_batch_size: 24
|
50 |
+
- seed: 42
|
51 |
+
- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
52 |
+
- lr_scheduler_type: linear
|
53 |
+
- num_epochs: 6
|
54 |
+
|
55 |
+
### Training results
|
56 |
+
|
57 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 Macro | F1 Micro | Precision Macro | Precision Micro | Recall Macro | Recall Micro |
|
58 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|:--------:|:--------:|:---------------:|:---------------:|:------------:|:------------:|
|
59 |
+
| 0.0388 | 1.0 | 93 | 0.1275 | 0.9813 | 0.6122 | 0.9816 | 0.7265 | 0.9816 | 0.5596 | 0.9816 |
|
60 |
+
| 0.0227 | 2.0 | 186 | 0.1113 | 0.9853 | 0.6907 | 0.9854 | 0.7169 | 0.9853 | 0.6795 | 0.9855 |
|
61 |
+
| 0.0085 | 3.0 | 279 | 0.1155 | 0.9868 | 0.7550 | 0.9868 | 0.8260 | 0.9868 | 0.7155 | 0.9869 |
|
62 |
+
| 0.0045 | 4.0 | 372 | 0.1146 | 0.9866 | 0.7407 | 0.9867 | 0.7604 | 0.9866 | 0.7299 | 0.9868 |
|
63 |
+
| 0.0027 | 5.0 | 465 | 0.1084 | 0.9890 | 0.7935 | 0.9891 | 0.8525 | 0.9890 | 0.7570 | 0.9892 |
|
64 |
+
| 0.0008 | 6.0 | 558 | 0.1112 | 0.9887 | 0.7886 | 0.9888 | 0.8418 | 0.9887 | 0.7568 | 0.9889 |
|
65 |
+
|
66 |
+
|
67 |
+
### Framework versions
|
68 |
+
|
69 |
+
- Transformers 4.46.3
|
70 |
+
- Pytorch 2.5.1+cu121
|
71 |
+
- Datasets 3.2.0
|
72 |
+
- Tokenizers 0.20.3
|
config.json
ADDED
@@ -0,0 +1,130 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "bert-base-uncased",
|
3 |
+
"architectures": [
|
4 |
+
"BertForTokenClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"gradient_checkpointing": false,
|
9 |
+
"hidden_act": "gelu",
|
10 |
+
"hidden_dropout_prob": 0.1,
|
11 |
+
"hidden_size": 768,
|
12 |
+
"id2label": {
|
13 |
+
"0": "B-U:PREP",
|
14 |
+
"1": "I-U:VERB:TENSE",
|
15 |
+
"2": "I-R:NOUN:INFL",
|
16 |
+
"3": "I-R:VERB:TENSE",
|
17 |
+
"4": "I-R:WO",
|
18 |
+
"5": "I-U:OTHER",
|
19 |
+
"6": "B-U:VERB",
|
20 |
+
"7": "B-R:VERB:INFL",
|
21 |
+
"8": "I-R:VERB:INFL",
|
22 |
+
"9": "B-R:VERB:SVA",
|
23 |
+
"10": "B-U:NOUN",
|
24 |
+
"11": "B-R:PREP",
|
25 |
+
"12": "I-U:NOUN",
|
26 |
+
"13": "B-U:CONJ",
|
27 |
+
"14": "I-R:PUNCT",
|
28 |
+
"15": "B-R:SPELL",
|
29 |
+
"16": "B-U:PRON",
|
30 |
+
"17": "I-R:SPELL",
|
31 |
+
"18": "B-R:WO",
|
32 |
+
"19": "I-R:MORPH",
|
33 |
+
"20": "B-R:VERB:TENSE",
|
34 |
+
"21": "B-R:NOUN",
|
35 |
+
"22": "I-R:OTHER",
|
36 |
+
"23": "B-U:DET",
|
37 |
+
"24": "B-U:PART",
|
38 |
+
"25": "B-R:ADV",
|
39 |
+
"26": "I-R:VERB:SVA",
|
40 |
+
"27": "I-R:DET",
|
41 |
+
"28": "B-R:NOUN:NUM",
|
42 |
+
"29": "O",
|
43 |
+
"30": "B-R:ADJ",
|
44 |
+
"31": "B-U:VERB:TENSE",
|
45 |
+
"32": "B-R:PRON",
|
46 |
+
"33": "I-U:VERB",
|
47 |
+
"34": "I-R:ADV",
|
48 |
+
"35": "I-R:VERB:FORM",
|
49 |
+
"36": "B-R:OTHER",
|
50 |
+
"37": "B-U:VERB:FORM",
|
51 |
+
"38": "B-U:ADV",
|
52 |
+
"39": "B-R:NOUN:INFL",
|
53 |
+
"40": "B-R:PART",
|
54 |
+
"41": "B-U:OTHER",
|
55 |
+
"42": "I-R:VERB",
|
56 |
+
"43": "B-R:PUNCT",
|
57 |
+
"44": "B-R:VERB",
|
58 |
+
"45": "B-R:DET",
|
59 |
+
"46": "B-R:MORPH",
|
60 |
+
"47": "I-R:NOUN",
|
61 |
+
"48": "B-R:VERB:FORM",
|
62 |
+
"49": "B-R:ADJ:FORM"
|
63 |
+
},
|
64 |
+
"initializer_range": 0.02,
|
65 |
+
"intermediate_size": 3072,
|
66 |
+
"label2id": {
|
67 |
+
"B-R:ADJ": 30,
|
68 |
+
"B-R:ADJ:FORM": 49,
|
69 |
+
"B-R:ADV": 25,
|
70 |
+
"B-R:DET": 45,
|
71 |
+
"B-R:MORPH": 46,
|
72 |
+
"B-R:NOUN": 21,
|
73 |
+
"B-R:NOUN:INFL": 39,
|
74 |
+
"B-R:NOUN:NUM": 28,
|
75 |
+
"B-R:OTHER": 36,
|
76 |
+
"B-R:PART": 40,
|
77 |
+
"B-R:PREP": 11,
|
78 |
+
"B-R:PRON": 32,
|
79 |
+
"B-R:PUNCT": 43,
|
80 |
+
"B-R:SPELL": 15,
|
81 |
+
"B-R:VERB": 44,
|
82 |
+
"B-R:VERB:FORM": 48,
|
83 |
+
"B-R:VERB:INFL": 7,
|
84 |
+
"B-R:VERB:SVA": 9,
|
85 |
+
"B-R:VERB:TENSE": 20,
|
86 |
+
"B-R:WO": 18,
|
87 |
+
"B-U:ADV": 38,
|
88 |
+
"B-U:CONJ": 13,
|
89 |
+
"B-U:DET": 23,
|
90 |
+
"B-U:NOUN": 10,
|
91 |
+
"B-U:OTHER": 41,
|
92 |
+
"B-U:PART": 24,
|
93 |
+
"B-U:PREP": 0,
|
94 |
+
"B-U:PRON": 16,
|
95 |
+
"B-U:VERB": 6,
|
96 |
+
"B-U:VERB:FORM": 37,
|
97 |
+
"B-U:VERB:TENSE": 31,
|
98 |
+
"I-R:ADV": 34,
|
99 |
+
"I-R:DET": 27,
|
100 |
+
"I-R:MORPH": 19,
|
101 |
+
"I-R:NOUN": 47,
|
102 |
+
"I-R:NOUN:INFL": 2,
|
103 |
+
"I-R:OTHER": 22,
|
104 |
+
"I-R:PUNCT": 14,
|
105 |
+
"I-R:SPELL": 17,
|
106 |
+
"I-R:VERB": 42,
|
107 |
+
"I-R:VERB:FORM": 35,
|
108 |
+
"I-R:VERB:INFL": 8,
|
109 |
+
"I-R:VERB:SVA": 26,
|
110 |
+
"I-R:VERB:TENSE": 3,
|
111 |
+
"I-R:WO": 4,
|
112 |
+
"I-U:NOUN": 12,
|
113 |
+
"I-U:OTHER": 5,
|
114 |
+
"I-U:VERB": 33,
|
115 |
+
"I-U:VERB:TENSE": 1,
|
116 |
+
"O": 29
|
117 |
+
},
|
118 |
+
"layer_norm_eps": 1e-12,
|
119 |
+
"max_position_embeddings": 512,
|
120 |
+
"model_type": "bert",
|
121 |
+
"num_attention_heads": 12,
|
122 |
+
"num_hidden_layers": 12,
|
123 |
+
"pad_token_id": 0,
|
124 |
+
"position_embedding_type": "absolute",
|
125 |
+
"torch_dtype": "float32",
|
126 |
+
"transformers_version": "4.46.3",
|
127 |
+
"type_vocab_size": 2,
|
128 |
+
"use_cache": true,
|
129 |
+
"vocab_size": 30522
|
130 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:898ad17c5286bdcb31b773b2aaaa66a85e4495c16dcd5f78404e3a492b04d3d9
|
3 |
+
size 435743736
|
runs/Dec12_22-37-18_a365e7b9463b/events.out.tfevents.1734043038.a365e7b9463b.6288.7
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e3ebdf7a8c90a52e4dcea979be104c207bd7f21d36fc49f26a71b1d0f80ba4b0
|
3 |
+
size 18100
|
runs/Dec12_22-38-28_a365e7b9463b/events.out.tfevents.1734043108.a365e7b9463b.6288.8
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:86c348ccf5dbe4e7a2a027e222a0b98293e4a8a71f7b4e2083d79aa3969eaecc
|
3 |
+
size 12890
|
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": false,
|
45 |
+
"cls_token": "[CLS]",
|
46 |
+
"do_lower_case": true,
|
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:fba559b60c5d760413ca4c35858fba48e69260c499152a0432bcbe8cfdd2f1d6
|
3 |
+
size 5304
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|