Bangla Depression Detection Model
A fine-tuned transformer model for Bangla text depression detection.
Model Details
- Task: Text classification (4 classes)
- Base Model: BanglaBERT
- Language: Bangla
Classes
- 0: Normal
- 1: Mild
- 2: Moderate
- 3: Severe
Usage
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
model_name = "SrothJr/bangla-depression-model"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)
# Inference
text = "আপনার বাংলা টেক্সট এখানে"
inputs = tokenizer(text, return_tensors="pt")
with torch.no_grad():
outputs = model(**inputs)
logits = outputs.logits
predicted_class = logits.argmax(-1).item()
print(f"Predicted class: {predicted_class}")
Training
This model was fine-tuned on a Bangla depression detection dataset using the Hugging Face Transformers library.
License
MIT
Citation
If you use this model, please cite:
@model{bangla_depression_model_2026,
author = {SrothJr},
title = {Bangla Depression Detection Model},
year = {2026}
}
- Downloads last month
- 12
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support
Model tree for SrothJr/bangla-depression-model
Base model
sagorsarker/bangla-bert-base