CoolFace
Modelpublic

thothai/turkce-kufur-tespiti

sourceHugging Faceafl-3.0updated 4y agoView on Hugging Face
1likes15downloads
Model Card

Thoth Ai, Türkçe hakaret ve küfürleri tespit etmek için oluşturulmuştur. Akademik projelerde kaynak gösterilmesi halinde kullanılabilir.

Validation Metrics

  • —Loss: 0.230
  • —Accuracy: 0.936
  • —Macro F1: 0.927
  • —Micro F1: 0.936
  • —Weighted F1: 0.936
  • —Macro Precision: 0.929
  • —Micro Precision: 0.936
  • —Weighted Precision: 0.936
  • —Macro Recall: 0.925
  • —Micro Recall: 0.936
  • —Weighted Recall: 0.936

from transformers import AutoModelForSequenceClassification, AutoTokenizer

model = AutoModelForSequenceClassification.frompretrained("thothai/turkce-kufur-tespiti", useauth_token=True)

tokenizer = AutoTokenizer.frompretrained("thothai/turkce-kufur-tespiti", useauth_token=True)

inputs = tokenizer("Merhaba", return_tensors="pt")

outputs = model(**inputs)