Downloads · 30 days
8
12% of all-time downloads
Metinimo19/turkish-conspiracy-detection
turkish-conspiracy-detection is a text classification model from Metinimo19. Use it when you need a label for a piece of text. The card lists the license as apache-2.0.
Bu model, Türkçe metinlerde komplo teorisi tespiti yapmak için fine-tune edilmiş BERT tabanlı bir sınıflandırma modelidir.
Downloads · 30 days
8
12% of all-time downloads
All-time downloads
68
Public
Parameters
111M
442 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors442 MB · 100%
From the Hugging Face model README
Bu model, Türkçe metinlerde komplo teorisi tespiti yapmak için fine-tune edilmiş BERT tabanlı bir sınıflandırma modelidir.
Model, Türkçe metinlerde komplo teorisi tespiti için kullanılabilir:
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
# Model ve tokenizer'ı yükle
tokenizer = AutoTokenizer.from_pretrained("Metinimo19/turkish-conspiracy-detection")
model = AutoModelForSequenceClassification.from_pretrained("Metinimo19/turkish-conspiracy-detection")
# Örnek metin
text = "5G teknolojisi insanları kontrol etmek için tasarlanmış gizli bir sistemdir."
# Tahmin yap
inputs = tokenizer(text, return_tensors="pt", truncation=True, padding=True, max_length=512)
with torch.no_grad():
outputs = model(**inputs)
predictions = torch.nn.functional.softmax(outputs.logits, dim=-1)
predicted_class = torch.argmax(predictions, dim=-1).item()
# Sonuç
result = "Komplo Teorisi" if predicted_class == 1 else "Gerçek Haber"
confidence = predictions[0][predicted_class].item()
print(f"Tahmin: {result} (Güven: {confidence:.2%})")
Model test seti üzerinde şu performansı gösterdi:
| Metrik | Değer |
|---|---|
| Accuracy | 0.9879 |
| F1 Score | 0.9879 |
| Precision | 0.9879 |
| Recall | 0.9879 |
from transformers import pipeline
# Pipeline kullanarak basit kullanım
classifier = pipeline("text-classification", model="Metinimo19/turkish-conspiracy-detection")
result = classifier("Ay'a hiç çıkmadık, tüm görüntüler sahteydi.")
print(result)
Bu model, eğitim ve araştırma amaçları için geliştirilmiştir. Üretim ortamında kullanmadan önce kapsamlı testler yapılması önerilir.