Downloads · 30 days
0
Saif-Siddique/bangla-cyberbully-google-bert-base-multilingual-cased
bangla-cyberbully-google-bert-base-multilingual-cased is a text classification model from Saif-Siddique. Use it when you need a label for a piece of text. The card lists the license as mit.
This model is fine-tuned for multi-label classification to detect cyberbullying in Bangla text.
Downloads · 30 days
0
Access
Public
Updated Jan 10, 2026
Repo size
1.4 GB
Likes
0
Public
Click a slice to open those files.
.bin712 MB · 50%
From the Hugging Face model README
This model is fine-tuned for multi-label classification to detect cyberbullying in Bangla text.
pip install torch transformers
from model import TransformerMultiLabelClassifier
from transformers import AutoTokenizer
import torch
# Load the model
model = TransformerMultiLabelClassifier.from_pretrained("path/to/saved/model")
tokenizer = AutoTokenizer.from_pretrained("path/to/saved/model")
# Prepare input
text = "আপনার বাংলা টেক্সট এখানে"
inputs = tokenizer(text, return_tensors="pt", truncation=True, padding=True, max_length=128)
# Get predictions
outputs = model.predict(inputs['input_ids'], inputs['attention_mask'])
probabilities = outputs['probabilities'][0]
predictions = outputs['predictions'][0]
labels = ['bully', 'sexual', 'religious', 'threat', 'spam']
for label, prob, pred in zip(labels, probabilities, predictions):
status = "✓ Detected" if pred else "✗ Not detected"
print(f"{label}: {prob:.4f} ({status})")
# For batch inference
texts = ["টেক্সট ১", "টেক্সট ২", "টেক্সট ৩"]
inputs = tokenizer(texts, return_tensors="pt", truncation=True, padding=True, max_length=128)
outputs = model.predict(inputs['input_ids'], inputs['attention_mask'])
| Label | Description |
|---|---|
| bully | General bullying content |
| sexual | Sexual harassment or inappropriate content |
| religious | Religious hate or discrimination |
| threat | Threatening content |
| spam | Spam or irrelevant content |
This model was trained using:
If you use this model, please cite:
@misc{bangla-cyberbullying-detection,
author = {Your Name},
title = {Bangla Cyberbullying Detection Model},
year = {2024},
publisher = {HuggingFace},
url = {https://huggingface.co/your-username/your-model}
}