jbroermann commited on
Commit
e2584c2
1 Parent(s): 696e8d5

Finished training

Browse files
README.md ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model: google-bert/bert-base-german-cased
4
+ tags:
5
+ - generated_from_trainer
6
+ model-index:
7
+ - name: bert-mapa-german
8
+ results: []
9
+ ---
10
+
11
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
12
+ should probably proofread and complete it, then remove this comment. -->
13
+
14
+ # bert-mapa-german
15
+
16
+ This model is a fine-tuned version of [google-bert/bert-base-german-cased](https://huggingface.co/google-bert/bert-base-german-cased) on the None dataset.
17
+ It achieves the following results on the evaluation set:
18
+ - Loss: 0.0325
19
+ - Address: {'precision': 0.5882352941176471, 'recall': 0.6666666666666666, 'f1': 0.625, 'number': 15}
20
+ - Age: {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 3}
21
+ - Amount: {'precision': 1.0, 'recall': 1.0, 'f1': 1.0, 'number': 1}
22
+ - Date: {'precision': 0.9454545454545454, 'recall': 0.9454545454545454, 'f1': 0.9454545454545454, 'number': 55}
23
+ - Name: {'precision': 0.7, 'recall': 0.9545454545454546, 'f1': 0.8076923076923077, 'number': 22}
24
+ - Organisation: {'precision': 0.5405405405405406, 'recall': 0.6451612903225806, 'f1': 0.588235294117647, 'number': 31}
25
+ - Person: {'precision': 0.5384615384615384, 'recall': 0.5, 'f1': 0.5185185185185186, 'number': 14}
26
+ - Role: {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 1}
27
+ - Overall Precision: 0.7255
28
+ - Overall Recall: 0.7817
29
+ - Overall F1: 0.7525
30
+ - Overall Accuracy: 0.9912
31
+
32
+ ## Model description
33
+
34
+ More information needed
35
+
36
+ ## Intended uses & limitations
37
+
38
+ More information needed
39
+
40
+ ## Training and evaluation data
41
+
42
+ More information needed
43
+
44
+ ## Training procedure
45
+
46
+ ### Training hyperparameters
47
+
48
+ The following hyperparameters were used during training:
49
+ - learning_rate: 2e-05
50
+ - train_batch_size: 8
51
+ - eval_batch_size: 8
52
+ - seed: 42
53
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
54
+ - lr_scheduler_type: linear
55
+ - num_epochs: 4
56
+
57
+ ### Training results
58
+
59
+ | Training Loss | Epoch | Step | Validation Loss | Address | Amount | Date | Marital status | Name | Organisation | Person | Profession | Role | Overall Precision | Overall Recall | Overall F1 | Overall Accuracy |
60
+ |:-------------:|:-----:|:----:|:---------------:|:------------------------------------------------------------------------------------------:|:---------------------------------------------------------:|:-------------------------------------------------------------------------------------------------------:|:---------------------------------------------------------:|:-------------------------------------------------------------------------------------------------------:|:------------------------------------------------------------------------------------------:|:-------------------------------------------------------------------------------------------------------:|:---------------------------------------------------------:|:---------------------------------------------------------:|:-----------------:|:--------------:|:----------:|:----------------:|
61
+ | No log | 1.0 | 218 | 0.0607 | {'precision': 0.5882352941176471, 'recall': 0.6666666666666666, 'f1': 0.625, 'number': 15} | {'precision': 1.0, 'recall': 1.0, 'f1': 1.0, 'number': 3} | {'precision': 0.851063829787234, 'recall': 0.9090909090909091, 'f1': 0.8791208791208791, 'number': 44} | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 2} | {'precision': 0.76, 'recall': 0.9047619047619048, 'f1': 0.8260869565217391, 'number': 21} | {'precision': 0.4915254237288136, 'recall': 0.725, 'f1': 0.5858585858585859, 'number': 40} | {'precision': 0.5, 'recall': 0.6153846153846154, 'f1': 0.5517241379310345, 'number': 13} | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 1} | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 1} | 0.6527 | 0.7786 | 0.7101 | 0.9859 |
62
+ | No log | 2.0 | 436 | 0.0479 | {'precision': 0.65, 'recall': 0.8666666666666667, 'f1': 0.7428571428571429, 'number': 15} | {'precision': 1.0, 'recall': 1.0, 'f1': 1.0, 'number': 3} | {'precision': 0.8958333333333334, 'recall': 0.9772727272727273, 'f1': 0.9347826086956522, 'number': 44} | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 2} | {'precision': 0.6774193548387096, 'recall': 1.0, 'f1': 0.8076923076923077, 'number': 21} | {'precision': 0.5897435897435898, 'recall': 0.575, 'f1': 0.5822784810126582, 'number': 40} | {'precision': 0.7857142857142857, 'recall': 0.8461538461538461, 'f1': 0.8148148148148148, 'number': 13} | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 1} | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 1} | 0.7355 | 0.8143 | 0.7729 | 0.9896 |
63
+ | 0.116 | 3.0 | 654 | 0.0414 | {'precision': 0.65, 'recall': 0.8666666666666667, 'f1': 0.7428571428571429, 'number': 15} | {'precision': 1.0, 'recall': 1.0, 'f1': 1.0, 'number': 3} | {'precision': 0.8958333333333334, 'recall': 0.9772727272727273, 'f1': 0.9347826086956522, 'number': 44} | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 2} | {'precision': 0.7407407407407407, 'recall': 0.9523809523809523, 'f1': 0.8333333333333334, 'number': 21} | {'precision': 0.725, 'recall': 0.725, 'f1': 0.7250000000000001, 'number': 40} | {'precision': 0.6666666666666666, 'recall': 0.7692307692307693, 'f1': 0.7142857142857142, 'number': 13} | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 1} | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 1} | 0.7712 | 0.8429 | 0.8055 | 0.9908 |
64
+ | 0.116 | 4.0 | 872 | 0.0421 | {'precision': 0.65, 'recall': 0.8666666666666667, 'f1': 0.7428571428571429, 'number': 15} | {'precision': 1.0, 'recall': 1.0, 'f1': 1.0, 'number': 3} | {'precision': 0.8958333333333334, 'recall': 0.9772727272727273, 'f1': 0.9347826086956522, 'number': 44} | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 2} | {'precision': 0.8, 'recall': 0.9523809523809523, 'f1': 0.8695652173913043, 'number': 21} | {'precision': 0.6818181818181818, 'recall': 0.75, 'f1': 0.7142857142857143, 'number': 40} | {'precision': 0.8571428571428571, 'recall': 0.9230769230769231, 'f1': 0.888888888888889, 'number': 13} | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 1} | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 1} | 0.7857 | 0.8643 | 0.8231 | 0.9917 |
65
+
66
+
67
+ ### Framework versions
68
+
69
+ - Transformers 4.40.0
70
+ - Pytorch 2.1.0+cu121
71
+ - Datasets 2.19.0
72
+ - Tokenizers 0.19.1
config.json ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google-bert/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-ADDRESS",
14
+ "2": "I-ADDRESS",
15
+ "3": "B-DATE",
16
+ "4": "I-DATE",
17
+ "5": "B-ORGANISATION",
18
+ "6": "I-ORGANISATION",
19
+ "7": "B-NAME",
20
+ "8": "I-NAME",
21
+ "9": "B-PERSON",
22
+ "10": "I-PERSON",
23
+ "11": "B-ROLE",
24
+ "12": "I-ROLE",
25
+ "13": "B-PROFESSION",
26
+ "14": "I-PROFESSION",
27
+ "15": "B-AMOUNT",
28
+ "16": "I-AMOUNT",
29
+ "17": "B-AGE",
30
+ "18": "I-AGE",
31
+ "19": "B-MARITAL STATUS",
32
+ "20": "I-MARITAL STATUS",
33
+ "21": "B-ETHNIC CATEGORY",
34
+ "22": "I-ETHNIC CATEGORY",
35
+ "23": "B-NATIONALITY",
36
+ "24": "I-NATIONALITY"
37
+ },
38
+ "initializer_range": 0.02,
39
+ "intermediate_size": 3072,
40
+ "label2id": {
41
+ "B-ADDRESS": 1,
42
+ "B-AGE": 17,
43
+ "B-AMOUNT": 15,
44
+ "B-DATE": 3,
45
+ "B-ETHNIC CATEGORY": 21,
46
+ "B-MARITAL STATUS": 19,
47
+ "B-NAME": 7,
48
+ "B-NATIONALITY": 23,
49
+ "B-ORGANISATION": 5,
50
+ "B-PERSON": 9,
51
+ "B-PROFESSION": 13,
52
+ "B-ROLE": 11,
53
+ "I-ADDRESS": 2,
54
+ "I-AGE": 18,
55
+ "I-AMOUNT": 16,
56
+ "I-DATE": 4,
57
+ "I-ETHNIC CATEGORY": 22,
58
+ "I-MARITAL STATUS": 20,
59
+ "I-NAME": 8,
60
+ "I-NATIONALITY": 24,
61
+ "I-ORGANISATION": 6,
62
+ "I-PERSON": 10,
63
+ "I-PROFESSION": 14,
64
+ "I-ROLE": 12,
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.40.0",
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:9057eb525021c8fbd2d8c9e244f581bc9edf48d5bed2717d07dc6962020d6cd7
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,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
+ "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": true,
45
+ "cls_token": "[CLS]",
46
+ "do_lower_case": false,
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:ff9df7507025cdc300d4ca63aef319fb27233fa244fc064689e7f53443c8ec24
3
+ size 4984
vocab.txt ADDED
The diff for this file is too large to render. See raw diff