Training completed!
Browse files- README.md +93 -0
- config.json +79 -0
- model.safetensors +3 -0
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +56 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
license: mit
|
4 |
+
base_model: bert-base-german-cased
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
datasets:
|
8 |
+
- germeval_14
|
9 |
+
metrics:
|
10 |
+
- accuracy
|
11 |
+
- f1
|
12 |
+
- precision
|
13 |
+
- recall
|
14 |
+
model-index:
|
15 |
+
- name: ner_model
|
16 |
+
results:
|
17 |
+
- task:
|
18 |
+
name: Token Classification
|
19 |
+
type: token-classification
|
20 |
+
dataset:
|
21 |
+
name: germeval_14
|
22 |
+
type: germeval_14
|
23 |
+
config: germeval_14
|
24 |
+
split: test
|
25 |
+
args: germeval_14
|
26 |
+
metrics:
|
27 |
+
- name: Accuracy
|
28 |
+
type: accuracy
|
29 |
+
value: 0.9703112769708805
|
30 |
+
- name: F1
|
31 |
+
type: f1
|
32 |
+
value: 0.8348410033576931
|
33 |
+
- name: Precision
|
34 |
+
type: precision
|
35 |
+
value: 0.8311310366525091
|
36 |
+
- name: Recall
|
37 |
+
type: recall
|
38 |
+
value: 0.8385842393460836
|
39 |
+
---
|
40 |
+
|
41 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
42 |
+
should probably proofread and complete it, then remove this comment. -->
|
43 |
+
|
44 |
+
# ner_model
|
45 |
+
|
46 |
+
This model is a fine-tuned version of [bert-base-german-cased](https://huggingface.co/bert-base-german-cased) on the germeval_14 dataset.
|
47 |
+
It achieves the following results on the evaluation set:
|
48 |
+
- Loss: 0.1446
|
49 |
+
- Accuracy: 0.9703
|
50 |
+
- F1: 0.8348
|
51 |
+
- Precision: 0.8311
|
52 |
+
- Recall: 0.8386
|
53 |
+
|
54 |
+
## Model description
|
55 |
+
|
56 |
+
More information needed
|
57 |
+
|
58 |
+
## Intended uses & limitations
|
59 |
+
|
60 |
+
More information needed
|
61 |
+
|
62 |
+
## Training and evaluation data
|
63 |
+
|
64 |
+
More information needed
|
65 |
+
|
66 |
+
## Training procedure
|
67 |
+
|
68 |
+
### Training hyperparameters
|
69 |
+
|
70 |
+
The following hyperparameters were used during training:
|
71 |
+
- learning_rate: 2e-05
|
72 |
+
- train_batch_size: 8
|
73 |
+
- eval_batch_size: 8
|
74 |
+
- seed: 42
|
75 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
76 |
+
- lr_scheduler_type: linear
|
77 |
+
- num_epochs: 3
|
78 |
+
|
79 |
+
### Training results
|
80 |
+
|
81 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
|
82 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|:---------:|:------:|
|
83 |
+
| 0.1274 | 1.0 | 3000 | 0.1132 | 0.9671 | 0.8144 | 0.8031 | 0.8260 |
|
84 |
+
| 0.065 | 2.0 | 6000 | 0.1382 | 0.9690 | 0.8301 | 0.8452 | 0.8155 |
|
85 |
+
| 0.0365 | 3.0 | 9000 | 0.1446 | 0.9703 | 0.8348 | 0.8311 | 0.8386 |
|
86 |
+
|
87 |
+
|
88 |
+
### Framework versions
|
89 |
+
|
90 |
+
- Transformers 4.47.1
|
91 |
+
- Pytorch 2.5.1+cu124
|
92 |
+
- Datasets 3.2.0
|
93 |
+
- Tokenizers 0.21.0
|
config.json
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "bert-base-german-cased",
|
3 |
+
"architectures": [
|
4 |
+
"BertForTokenClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"hidden_act": "gelu",
|
9 |
+
"hidden_dropout_prob": 0.1,
|
10 |
+
"hidden_size": 768,
|
11 |
+
"id2label": {
|
12 |
+
"0": "O",
|
13 |
+
"1": "B-LOC",
|
14 |
+
"2": "I-LOC",
|
15 |
+
"3": "B-LOCderiv",
|
16 |
+
"4": "I-LOCderiv",
|
17 |
+
"5": "B-LOCpart",
|
18 |
+
"6": "I-LOCpart",
|
19 |
+
"7": "B-ORG",
|
20 |
+
"8": "I-ORG",
|
21 |
+
"9": "B-ORGderiv",
|
22 |
+
"10": "I-ORGderiv",
|
23 |
+
"11": "B-ORGpart",
|
24 |
+
"12": "I-ORGpart",
|
25 |
+
"13": "B-OTH",
|
26 |
+
"14": "I-OTH",
|
27 |
+
"15": "B-OTHderiv",
|
28 |
+
"16": "I-OTHderiv",
|
29 |
+
"17": "B-OTHpart",
|
30 |
+
"18": "I-OTHpart",
|
31 |
+
"19": "B-PER",
|
32 |
+
"20": "I-PER",
|
33 |
+
"21": "B-PERderiv",
|
34 |
+
"22": "I-PERderiv",
|
35 |
+
"23": "B-PERpart",
|
36 |
+
"24": "I-PERpart"
|
37 |
+
},
|
38 |
+
"initializer_range": 0.02,
|
39 |
+
"intermediate_size": 3072,
|
40 |
+
"label2id": {
|
41 |
+
"B-LOC": 1,
|
42 |
+
"B-LOCderiv": 3,
|
43 |
+
"B-LOCpart": 5,
|
44 |
+
"B-ORG": 7,
|
45 |
+
"B-ORGderiv": 9,
|
46 |
+
"B-ORGpart": 11,
|
47 |
+
"B-OTH": 13,
|
48 |
+
"B-OTHderiv": 15,
|
49 |
+
"B-OTHpart": 17,
|
50 |
+
"B-PER": 19,
|
51 |
+
"B-PERderiv": 21,
|
52 |
+
"B-PERpart": 23,
|
53 |
+
"I-LOC": 2,
|
54 |
+
"I-LOCderiv": 4,
|
55 |
+
"I-LOCpart": 6,
|
56 |
+
"I-ORG": 8,
|
57 |
+
"I-ORGderiv": 10,
|
58 |
+
"I-ORGpart": 12,
|
59 |
+
"I-OTH": 14,
|
60 |
+
"I-OTHderiv": 16,
|
61 |
+
"I-OTHpart": 18,
|
62 |
+
"I-PER": 20,
|
63 |
+
"I-PERderiv": 22,
|
64 |
+
"I-PERpart": 24,
|
65 |
+
"O": 0
|
66 |
+
},
|
67 |
+
"layer_norm_eps": 1e-12,
|
68 |
+
"max_position_embeddings": 512,
|
69 |
+
"model_type": "bert",
|
70 |
+
"num_attention_heads": 12,
|
71 |
+
"num_hidden_layers": 12,
|
72 |
+
"pad_token_id": 0,
|
73 |
+
"position_embedding_type": "absolute",
|
74 |
+
"torch_dtype": "float32",
|
75 |
+
"transformers_version": "4.47.1",
|
76 |
+
"type_vocab_size": 2,
|
77 |
+
"use_cache": true,
|
78 |
+
"vocab_size": 30000
|
79 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:af8b1467cb78f6348a57e68e880135b6f870eefc947258765c788be60efed255
|
3 |
+
size 434063252
|
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,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"2": {
|
12 |
+
"content": "[UNK]",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"3": {
|
20 |
+
"content": "[CLS]",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
},
|
27 |
+
"4": {
|
28 |
+
"content": "[SEP]",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false,
|
33 |
+
"special": true
|
34 |
+
},
|
35 |
+
"5": {
|
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": false,
|
47 |
+
"extra_special_tokens": {},
|
48 |
+
"mask_token": "[MASK]",
|
49 |
+
"model_max_length": 512,
|
50 |
+
"pad_token": "[PAD]",
|
51 |
+
"sep_token": "[SEP]",
|
52 |
+
"strip_accents": null,
|
53 |
+
"tokenize_chinese_chars": true,
|
54 |
+
"tokenizer_class": "BertTokenizer",
|
55 |
+
"unk_token": "[UNK]"
|
56 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2d2508f21ac071b9e6eaad33d0741cdd5e2952b5c8ecaaefbc06e64c1772eebe
|
3 |
+
size 5304
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|