Downloads · 30 days
18
8% of all-time downloads
syedmuhammadwaqas/roman-urdu-toxic-model
roman-urdu-toxic-model is a text classification model from syedmuhammadwaqas. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
This is a Roman Urdu Abusive Language Detection Model, fine-tuned on a custom dataset of abusive and non-abusive texts in Roman Urdu. It is based on xlm-roberta-base, a multilingual transformer model that performs wel…
Downloads · 30 days
18
8% of all-time downloads
All-time downloads
224
Public
Parameters
278M
1.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.1 GB · 98%
From the Hugging Face model README
This is a Roman Urdu Abusive Language Detection Model, fine-tuned on a custom dataset of abusive and non-abusive texts in Roman Urdu. It is based on xlm-roberta-base, a multilingual transformer model that performs well on low-resource languages like Roman Urdu.
xlm-roberta-baseThis model is intended for detecting abusive language in Roman Urdu text. It can be used in:
While trained on a diverse dataset, this model may still have biases in classification. It is recommended to manually review flagged content before taking automated actions.
You can use this model with the Hugging Face Inference API:
import requests
API_URL = "https://api-inference.huggingface.co/models/syedmuhammadwaqas/roman-urdu-toxic-model"
HEADERS = {"Authorization": "Bearer your_huggingface_api_key"}
def predict(text):
response = requests.post(API_URL, headers=HEADERS, json={"inputs": text})
return response.json()
print(predict("tum bohot ganda insan ho"))
use Illuminate\Support\Facades\Http;
$response = Http::withHeaders([
'Authorization' => 'Bearer your_huggingface_api_key'
])->post('https://api-inference.huggingface.co/models/syedmuhammadwaqas/roman-urdu-toxic-model', [
'inputs' => 'tum bohot ganda insan ho'
]);
$result = $response->json();
dd($result);
XLM-Roberta tokenizerThe model performs well on detecting toxic and non-toxic Roman Urdu text, but manual review is recommended for edge cases.
You can make this model public or monetize it using:
For any issues, please contact [[email protected]] or open an issue on Hugging Face.
✅ Now your model card is fully complete and ready for public use! 🚀