saribasmetehan commited on
Commit
20a2369
1 Parent(s): 84f71f2
README.md ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model: dbmdz/bert-base-turkish-uncased
4
+ tags:
5
+ - generated_from_trainer
6
+ datasets:
7
+ - turkish-wiki_ner
8
+ metrics:
9
+ - f1
10
+ model-index:
11
+ - name: bert-base-turkish-uncased-ner
12
+ results:
13
+ - task:
14
+ name: Token Classification
15
+ type: token-classification
16
+ dataset:
17
+ name: turkish-wiki_ner
18
+ type: turkish-wiki_ner
19
+ config: turkish-WikiNER
20
+ split: validation
21
+ args: turkish-WikiNER
22
+ metrics:
23
+ - name: F1
24
+ type: f1
25
+ value: 0.7821495486288537
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
+ # bert-base-turkish-uncased-ner
32
+
33
+ This model is a fine-tuned version of [dbmdz/bert-base-turkish-uncased](https://huggingface.co/dbmdz/bert-base-turkish-uncased) on the turkish-wiki_ner dataset.
34
+ It achieves the following results on the evaluation set:
35
+ - Loss: 0.2603
36
+ - F1: 0.7821
37
+
38
+ ## Model description
39
+
40
+ More information needed
41
+
42
+ ## Intended uses & limitations
43
+
44
+ More information needed
45
+
46
+ ## Training and evaluation data
47
+
48
+ More information needed
49
+
50
+ ## Training procedure
51
+
52
+ ### Training hyperparameters
53
+
54
+ The following hyperparameters were used during training:
55
+ - learning_rate: 2e-05
56
+ - train_batch_size: 16
57
+ - eval_batch_size: 16
58
+ - seed: 42
59
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
60
+ - lr_scheduler_type: linear
61
+ - num_epochs: 4
62
+
63
+ ### Training results
64
+
65
+ | Training Loss | Epoch | Step | Validation Loss | F1 |
66
+ |:-------------:|:-----:|:----:|:---------------:|:------:|
67
+ | 0.4 | 1.0 | 1186 | 0.2502 | 0.7703 |
68
+ | 0.2227 | 2.0 | 2372 | 0.2439 | 0.7740 |
69
+ | 0.1738 | 3.0 | 3558 | 0.2511 | 0.7783 |
70
+ | 0.1474 | 4.0 | 4744 | 0.2603 | 0.7821 |
71
+
72
+
73
+ ### Framework versions
74
+
75
+ - Transformers 4.41.2
76
+ - Pytorch 2.3.0+cu121
77
+ - Datasets 2.19.2
78
+ - Tokenizers 0.19.1
config.json ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "dbmdz/bert-base-turkish-uncased",
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": "I-LANGUAGE",
13
+ "1": "I-MONEY",
14
+ "2": "B-ORDINAL",
15
+ "3": "I-DATE",
16
+ "4": "I-FAC",
17
+ "5": "I-EVENT",
18
+ "6": "I-GPE",
19
+ "7": "B-LAW",
20
+ "8": "I-QUANTITY",
21
+ "9": "B-FAC",
22
+ "10": "I-PERSON",
23
+ "11": "B-GPE",
24
+ "12": "I-LOC",
25
+ "13": "I-LAW",
26
+ "14": "B-WORK_OF_ART",
27
+ "15": "B-QUANTITY",
28
+ "16": "I-ORDINAL",
29
+ "17": "B-ORG",
30
+ "18": "I-WORK_OF_ART",
31
+ "19": "B-TIME",
32
+ "20": "B-CARDINAL",
33
+ "21": "I-ORG",
34
+ "22": "I-CARDINAL",
35
+ "23": "I-NORP",
36
+ "24": "B-DATE",
37
+ "25": "B-TITLE",
38
+ "26": "B-EVENT",
39
+ "27": "B-PERCENT",
40
+ "28": "B-LOC",
41
+ "29": "B-NORP",
42
+ "30": "B-LANGUAGE",
43
+ "31": "I-PERCENT",
44
+ "32": "I-TITLE",
45
+ "33": "B-PRODUCT",
46
+ "34": "B-MONEY",
47
+ "35": "I-TIME",
48
+ "36": "B-PERSON",
49
+ "37": "O",
50
+ "38": "I-PRODUCT"
51
+ },
52
+ "initializer_range": 0.02,
53
+ "intermediate_size": 3072,
54
+ "label2id": {
55
+ "B-CARDINAL": 20,
56
+ "B-DATE": 24,
57
+ "B-EVENT": 26,
58
+ "B-FAC": 9,
59
+ "B-GPE": 11,
60
+ "B-LANGUAGE": 30,
61
+ "B-LAW": 7,
62
+ "B-LOC": 28,
63
+ "B-MONEY": 34,
64
+ "B-NORP": 29,
65
+ "B-ORDINAL": 2,
66
+ "B-ORG": 17,
67
+ "B-PERCENT": 27,
68
+ "B-PERSON": 36,
69
+ "B-PRODUCT": 33,
70
+ "B-QUANTITY": 15,
71
+ "B-TIME": 19,
72
+ "B-TITLE": 25,
73
+ "B-WORK_OF_ART": 14,
74
+ "I-CARDINAL": 22,
75
+ "I-DATE": 3,
76
+ "I-EVENT": 5,
77
+ "I-FAC": 4,
78
+ "I-GPE": 6,
79
+ "I-LANGUAGE": 0,
80
+ "I-LAW": 13,
81
+ "I-LOC": 12,
82
+ "I-MONEY": 1,
83
+ "I-NORP": 23,
84
+ "I-ORDINAL": 16,
85
+ "I-ORG": 21,
86
+ "I-PERCENT": 31,
87
+ "I-PERSON": 10,
88
+ "I-PRODUCT": 38,
89
+ "I-QUANTITY": 8,
90
+ "I-TIME": 35,
91
+ "I-TITLE": 32,
92
+ "I-WORK_OF_ART": 18,
93
+ "O": 37
94
+ },
95
+ "layer_norm_eps": 1e-12,
96
+ "max_position_embeddings": 512,
97
+ "model_type": "bert",
98
+ "num_attention_heads": 12,
99
+ "num_hidden_layers": 12,
100
+ "pad_token_id": 0,
101
+ "position_embedding_type": "absolute",
102
+ "torch_dtype": "float32",
103
+ "transformers_version": "4.41.2",
104
+ "type_vocab_size": 2,
105
+ "use_cache": true,
106
+ "vocab_size": 32000
107
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:68b04704f2a76772b9154bc27d68aad96ea9831d29f40995d3eee0502afac514
3
+ size 440250324
runs/Jun06_22-04-29_b18afc294261/events.out.tfevents.1717711486.b18afc294261.1365.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1e15089467e9101ac7b60293a25344d1cce83873b440e08c5ac529b89a8f7643
3
+ size 8844
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,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "1": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "4": {
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_basic_tokenize": true,
47
+ "do_lower_case": true,
48
+ "mask_token": "[MASK]",
49
+ "max_len": 512,
50
+ "model_max_length": 512,
51
+ "never_split": null,
52
+ "pad_token": "[PAD]",
53
+ "sep_token": "[SEP]",
54
+ "strip_accents": null,
55
+ "tokenize_chinese_chars": true,
56
+ "tokenizer_class": "BertTokenizer",
57
+ "unk_token": "[UNK]"
58
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:056740c31f89d3044a5e49ebf773b6c4bca3b49675412b55796c0aa7a1f4946c
3
+ size 5112
vocab.txt ADDED
The diff for this file is too large to render. See raw diff