Model ID:
cagrigungor/turkishtoxic-classifier
Model Type:
trained from scratch on Turkish corpus
Task:
Toxic / Non-Toxic Text Classification in Turkish
“Hiçbir şeye ihtiyacımız yok, yalnız bir şeye ihtiyacımız vardır; çalışkan olmak!“
Mustafa Kemal Atatürk
Overview
This model is a
Turkish-language toxicity detection system
trained entirely from scratch using a custom BERT model and tokenizer.
It classifies input text as either
toxic
(containing insults, hate speech, or profanity) or
notoxic
(neutral or positive text).
The model is part of a broader Turkish NLP initiative focused on open-source language understanding and content moderation.
Contains offensive, aggressive, or profane language
notoxic
Neutral, informative, or positive expression
Quick Usage
You can directly load and test the model with
transformers.pipeline
:
from transformers import pipeline
# Load the model
clf = pipeline("text-classification", model="cagrigungor/turkishtoxic-classifier")
# Test exampleprint(clf("Bugün hava çok güzel."))
Expected Output:
[{'label': 'notoxic', 'score': 0.992}]
You can also test multiple sentences at once:
texts = [
"Bugün hava çok güzel, yürüyüşe çıkmak istiyorum.",
"Sen tam bir gerizekalısın, beynin yok.",
"Ne kadar kibar ve anlayışlı bir insansın.",
"Yeter artık, bu yaptığın tam bir saçmalık.",
]
for t in texts:
result = clf(t)[0]
print(f"{t}\n→ {result['label']} ({result['score']:.3f})\n")
Example Output:
Bugün hava çok güzel, yürüyüşe çıkmak istiyorum.
→ notoxic (0.992)
Sen tam bir gerizekalısın, beynin yok.
→ toxic (0.987)
Ne kadar kibar ve anlayışlı bir insansın.
→ notoxic (0.994)
Yeter artık, bu yaptığın tam bir saçmalık.
→ toxic (0.842)
Runs of cagrigungor turkishtoxic-classifier on huggingface.co
72
Total runs
-1
24-hour runs
0
3-day runs
-3
7-day runs
26
30-day runs
More Information About turkishtoxic-classifier huggingface.co Model
turkishtoxic-classifier huggingface.co is an AI model on huggingface.co that provides turkishtoxic-classifier's model effect (), which can be used instantly with this cagrigungor turkishtoxic-classifier model. huggingface.co supports a free trial of the turkishtoxic-classifier model, and also provides paid use of the turkishtoxic-classifier. Support call turkishtoxic-classifier model through api, including Node.js, Python, http.
turkishtoxic-classifier huggingface.co is an online trial and call api platform, which integrates turkishtoxic-classifier's modeling effects, including api services, and provides a free online trial of turkishtoxic-classifier, you can try turkishtoxic-classifier online for free by clicking the link below.
cagrigungor turkishtoxic-classifier online free url in huggingface.co:
turkishtoxic-classifier is an open source model from GitHub that offers a free installation service, and any user can find turkishtoxic-classifier on GitHub to install. At the same time, huggingface.co provides the effect of turkishtoxic-classifier install, users can directly use turkishtoxic-classifier installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
turkishtoxic-classifier install url in huggingface.co: