cagrigungor / turkishtoxic-classifier

huggingface.co
Total runs: 72
24-hour runs: -1
7-day runs: -3
30-day runs: 26
Model's Last Updated: December 01 2025
text-classification

Introduction of turkishtoxic-classifier

Model Details of turkishtoxic-classifier

Turkish Toxic Comment Classifier 🇹🇷

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.


Training Details
Parameter Value
Base architecture BERT (12 layers, hidden size 512, 8 attention heads)
Vocabulary SentencePiece tokenizer (32,005 tokens)
Corpus size 17M+ Turkish sentences (masking task)
Pretraining objective Masked Language Modeling (MLM)
Downstream task Toxic Comment Classification
Training samples 100K manually filtered Turkish comments
Accuracy (validation) 0.9389
F1 Score (macro) 0.9385
Max sequence length 256 tokens
Optimizer AdamW
Learning rate 3e-5
Epochs 3
Batch size 64

Labels
Label Description
toxic 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 example
print(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

More turkishtoxic-classifier license Visit here:

https://choosealicense.com/licenses/apache-2.0

turkishtoxic-classifier huggingface.co

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 Url

https://huggingface.co/cagrigungor/turkishtoxic-classifier

cagrigungor turkishtoxic-classifier online free

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:

https://huggingface.co/cagrigungor/turkishtoxic-classifier

turkishtoxic-classifier install

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:

https://huggingface.co/cagrigungor/turkishtoxic-classifier

Url of turkishtoxic-classifier

turkishtoxic-classifier huggingface.co Url

Provider of turkishtoxic-classifier huggingface.co

cagrigungor
ORGANIZATIONS

Other API from cagrigungor

huggingface.co

Total runs: 24
Run Growth: 13
Growth Rate: 52.00%
Updated:December 15 2025
huggingface.co

Total runs: 15
Run Growth: 6
Growth Rate: 40.00%
Updated:December 08 2025
huggingface.co

Total runs: 7
Run Growth: 4
Growth Rate: 50.00%
Updated:February 15 2026
huggingface.co

Total runs: 5
Run Growth: 4
Growth Rate: 66.67%
Updated:September 24 2025