Werea-TR-Topic: Turkish konu sınıflandırma
Browse files- README.md +19 -0
- config.json +70 -0
- model.safetensors +3 -0
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +58 -0
- vocab.txt +0 -0
README.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: [tr]
|
| 3 |
+
license: mit
|
| 4 |
+
pipeline_tag: text-classification
|
| 5 |
+
base_model: dbmdz/bert-base-turkish-cased
|
| 6 |
+
tags: [turkish, text-classification, werea]
|
| 7 |
+
datasets: [GoktugD/turkish-topic-classification-1.5m]
|
| 8 |
+
---
|
| 9 |
+
# Werea-TR-Topic — Türkçe konu sınıflandırma
|
| 10 |
+
[dbmdz/bert-base-turkish-cased](https://huggingface.co/dbmdz/bert-base-turkish-cased) tabanının Türkçe konu sınıflandırma için fine-tune'u.
|
| 11 |
+
20 sınıf. Doğrulama: **accuracy 100.0%**, macro-F1 100.0%.
|
| 12 |
+
> Not: Sentetik ([GoktugD/turkish-topic-classification-1.5m](https://huggingface.co/datasets/GoktugD/turkish-topic-classification-1.5m)) veriyle eğitildi; gerçek-dünya kullanımında doğrulama önerilir.
|
| 13 |
+
## Kullanım
|
| 14 |
+
```python
|
| 15 |
+
from transformers import pipeline
|
| 16 |
+
clf = pipeline("text-classification", model="Werea-co/Werea-TR-Topic")
|
| 17 |
+
print(clf("Örnek Türkçe metin"))
|
| 18 |
+
```
|
| 19 |
+
💜 [werea.co](https://werea.co)
|
config.json
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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": "afet haz\u0131rl\u0131\u011f\u0131",
|
| 13 |
+
"1": "ak\u0131ll\u0131 tar\u0131m",
|
| 14 |
+
"2": "a\u00e7\u0131k kaynak",
|
| 15 |
+
"3": "bulut bili\u015fim",
|
| 16 |
+
"4": "dijital ar\u015fiv",
|
| 17 |
+
"5": "do\u011fa koruma",
|
| 18 |
+
"6": "e-ticaret",
|
| 19 |
+
"7": "enerji verimlili\u011fi",
|
| 20 |
+
"8": "finansal okuryazarl\u0131k",
|
| 21 |
+
"9": "geri d\u00f6n\u00fc\u015f\u00fcm",
|
| 22 |
+
"10": "g\u00fcne\u015f enerjisi",
|
| 23 |
+
"11": "k\u00fclt\u00fcrel miras",
|
| 24 |
+
"12": "lojistik",
|
| 25 |
+
"13": "mobil sa\u011fl\u0131k",
|
| 26 |
+
"14": "robotik",
|
| 27 |
+
"15": "siber g\u00fcvenlik",
|
| 28 |
+
"16": "su tasarrufu",
|
| 29 |
+
"17": "uzaktan e\u011fitim",
|
| 30 |
+
"18": "veri bilimi",
|
| 31 |
+
"19": "\u015fehir i\u00e7i ula\u015f\u0131m"
|
| 32 |
+
},
|
| 33 |
+
"initializer_range": 0.02,
|
| 34 |
+
"intermediate_size": 3072,
|
| 35 |
+
"label2id": {
|
| 36 |
+
"afet haz\u0131rl\u0131\u011f\u0131": 0,
|
| 37 |
+
"ak\u0131ll\u0131 tar\u0131m": 1,
|
| 38 |
+
"a\u00e7\u0131k kaynak": 2,
|
| 39 |
+
"bulut bili\u015fim": 3,
|
| 40 |
+
"dijital ar\u015fiv": 4,
|
| 41 |
+
"do\u011fa koruma": 5,
|
| 42 |
+
"e-ticaret": 6,
|
| 43 |
+
"enerji verimlili\u011fi": 7,
|
| 44 |
+
"finansal okuryazarl\u0131k": 8,
|
| 45 |
+
"geri d\u00f6n\u00fc\u015f\u00fcm": 9,
|
| 46 |
+
"g\u00fcne\u015f enerjisi": 10,
|
| 47 |
+
"k\u00fclt\u00fcrel miras": 11,
|
| 48 |
+
"lojistik": 12,
|
| 49 |
+
"mobil sa\u011fl\u0131k": 13,
|
| 50 |
+
"robotik": 14,
|
| 51 |
+
"siber g\u00fcvenlik": 15,
|
| 52 |
+
"su tasarrufu": 16,
|
| 53 |
+
"uzaktan e\u011fitim": 17,
|
| 54 |
+
"veri bilimi": 18,
|
| 55 |
+
"\u015fehir i\u00e7i ula\u015f\u0131m": 19
|
| 56 |
+
},
|
| 57 |
+
"layer_norm_eps": 1e-12,
|
| 58 |
+
"max_position_embeddings": 512,
|
| 59 |
+
"model_type": "bert",
|
| 60 |
+
"num_attention_heads": 12,
|
| 61 |
+
"num_hidden_layers": 12,
|
| 62 |
+
"pad_token_id": 0,
|
| 63 |
+
"position_embedding_type": "absolute",
|
| 64 |
+
"problem_type": "single_label_classification",
|
| 65 |
+
"torch_dtype": "float32",
|
| 66 |
+
"transformers_version": "4.46.3",
|
| 67 |
+
"type_vocab_size": 2,
|
| 68 |
+
"use_cache": true,
|
| 69 |
+
"vocab_size": 32000
|
| 70 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f9ac4461f5b3aa912e9a5d886e026d2932c8d082a02e80c646506bf2a68cca09
|
| 3 |
+
size 442554432
|
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": false,
|
| 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 |
+
}
|
vocab.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|