yavuzkomecoglu commited on
Commit
1541fc9
1 Parent(s): ebbab3e

added model files

Browse files
README.md ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - tr
4
+ tags:
5
+ - text # Example: audio
6
+ - text-classification # Example: automatic-speech-recognition
7
+ - news-category-classification # Example: speech
8
+ metrics:
9
+ - accuracy # Example: wer. Use metric id from https://hf.co/metrics
10
+ - f1
11
+ - precision
12
+ - recall
13
+ ---
14
+
15
+ ## INTERPRESS TURKISH NEWS CATEGORY CLASSIFICATION MODEL - TEST - v0.1
16
+
17
+ LABELS = {
18
+ 0: 'spor',
19
+ 1: 'is_ve_finans',
20
+ 2: 'lifestyle',
21
+ 3: 'eglence',
22
+ 4: 'seyahat',
23
+ 5: 'egitim',
24
+ 6: 'bilim',
25
+ 7: 'teknoloji',
26
+ 8: 'kultur_sanat',
27
+ 9: 'otomotiv',
28
+ 10: 'politika',
29
+ 11: 'endustri',
30
+ 12: 'moda',
31
+ 13: 'yemek'
32
+ }
33
+
34
+ ACC = 0.9128, F1 = 0.7142, PRECISION = 0.7355, RECALL = 0.06996
config.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "dbmdz/bert-base-turkish-cased",
3
+ "architectures": [
4
+ "BertForSequenceClassification"
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": "spor",
13
+ "1": "is_ve_finans",
14
+ "2": "lifestyle",
15
+ "3": "eglence",
16
+ "4": "seyahat",
17
+ "5": "egitim",
18
+ "6": "bilim",
19
+ "7": "teknoloji",
20
+ "8": "kultur_sanat",
21
+ "9": "otomotiv",
22
+ "10": "politika",
23
+ "11": "endustri",
24
+ "12": "moda",
25
+ "13": "yemek",
26
+ "14": "saglik"
27
+ },
28
+ "initializer_range": 0.02,
29
+ "intermediate_size": 3072,
30
+ "label2id": {
31
+ "spor": 0,
32
+ "is_ve_finans": 1,
33
+ "politika": 10,
34
+ "endustri": 11,
35
+ "moda": 12,
36
+ "yemek": 13,
37
+ "saglik": 14,
38
+ "lifestyle": 2,
39
+ "eglence": 3,
40
+ "seyahat": 4,
41
+ "egitim": 5,
42
+ "bilim": 6,
43
+ "teknoloji": 7,
44
+ "kultur_sanat": 8,
45
+ "otomotiv": 9
46
+ },
47
+ "layer_norm_eps": 1e-12,
48
+ "max_position_embeddings": 512,
49
+ "model_type": "bert",
50
+ "num_attention_heads": 12,
51
+ "num_hidden_layers": 12,
52
+ "pad_token_id": 0,
53
+ "position_embedding_type": "absolute",
54
+ "problem_type": "single_label_classification",
55
+ "torch_dtype": "float32",
56
+ "transformers_version": "4.25.1",
57
+ "type_vocab_size": 2,
58
+ "use_cache": true,
59
+ "vocab_size": 32000
60
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:27f5517135d20afa6497a04503d1aa187a4ca9c3f50b402c3bfabc3c519026aa
3
+ size 442588341
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,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "do_basic_tokenize": true,
4
+ "do_lower_case": false,
5
+ "mask_token": "[MASK]",
6
+ "max_len": 512,
7
+ "model_max_length": 512,
8
+ "name_or_path": "dbmdz/bert-base-turkish-cased",
9
+ "never_split": null,
10
+ "pad_token": "[PAD]",
11
+ "sep_token": "[SEP]",
12
+ "special_tokens_map_file": null,
13
+ "strip_accents": null,
14
+ "tokenize_chinese_chars": true,
15
+ "tokenizer_class": "BertTokenizer",
16
+ "unk_token": "[UNK]"
17
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff