Downloads · 30 days
0
kathiravan/TamilAbusiveGPT
TamilAbusiveGPT is a machine learning model from kathiravan. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This model is a fine-tuned GPT-4o model trained for abusive text detection in Tamil. It classifies text as either Abusive or Non-Abusive.
Downloads · 30 days
0
Access
Public
Updated Mar 19, 2025
Repo size
997 MB
Likes
0
Public
Click a slice to open those files.
.bin499 MB · 100%
From the Hugging Face model README
This model is a fine-tuned GPT-4o model trained for abusive text detection in Tamil. It classifies text as either Abusive or Non-Abusive.
This model is intended to:
✅ Detect abusive language in Tamil text.
✅ Assist in content moderation for social media platforms.
✅ Help in identifying harmful or offensive language.
⚠️ The model may misclassify text with ambiguous or sarcastic language.
⚠️ Since Tamil language data is often code-mixed with English, this model may require additional fine-tuning for such data.
from transformers import AutoModelForSequenceClassification, AutoTokenizer
import torch
# Load model and tokenizer
model = AutoModelForSequenceClassification.from_pretrained("kathiravan/TamilAbusiveGPT")
tokenizer = AutoTokenizer.from_pretrained("gpt-4o")
# Example Inference
def classify_tamil_text(text):
inputs = tokenizer(text, return_tensors="pt")
outputs = model(**inputs)
label = "Abusive" if outputs.logits.argmax().item() == 1 else "Non-Abusive"
return label
# Example usage
print(classify_tamil_text("இது மிகவும் மோசமான கருத்து"))