Downloads · 30 days
0
rizwanulrudra/bangla-hate-speech-detector
bangla-hate-speech-detector is a machine learning model from rizwanulrudra. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
A fine-tuned BanglaBERT model for detecting hate speech in Bengali text, classifying into: 1. Personal (0) 2. Political (1) 3. Religious (2) 4. Geopolitical (3)
Downloads · 30 days
0
Access
Public
Updated Jun 15, 2025
Repo size
6.6 GB
Likes
0
Public
Click a slice to open those files.
.pt4.4 GB · 67%
From the Hugging Face model README
A fine-tuned BanglaBERT model for detecting hate speech in Bengali text, classifying into:
| Metric | Score |
|---|---|
| Accuracy | 0.89 |
| F1 (Macro) | 0.87 |
from transformers import pipeline
classifier = pipeline(
"text-classification",
model="rizwanulrudra/bangla-hate-speech-detector"
)
sample_text = "এই সরকার কে যারা নির্লজ্জের মত সাপোর্ট দিয়েছে..."
classifier(sample_text)
# Output: {'label': 'Political', 'score': 0.92}