Downloads · 30 days
6
12% of all-time downloads
SrothJr/banglamentalBERT-mBERT-dapt
banglamentalBERT-mBERT-dapt is a text classification model from SrothJr. Use it when you need a label for a piece of text. The card lists the license as mit.
This is a Domain-Adaptive Pre-Trained (DAPT) model for detecting depression severity in Bangla social media text. A robust multilingual model capable of handling mixed-language (Code-Mixed) scenarios.
Downloads · 30 days
6
12% of all-time downloads
All-time downloads
49
Public
Parameters
178M
711 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors711 MB · 99%
From the Hugging Face model README
This is a Domain-Adaptive Pre-Trained (DAPT) model for detecting depression severity in Bangla social media text. A robust multilingual model capable of handling mixed-language (Code-Mixed) scenarios.
The model outputs one of the following classes:
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
# Load the model
model_name = "SrothJr/banglamentalBERT-mBERT-dapt"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)
# Inference
text = "আপনার বাংলা টেক্সট এখানে (Your Bengali text here)"
inputs = tokenizer(text, return_tensors="pt")
with torch.no_grad():
outputs = model(**inputs)
predictions = torch.argmax(outputs.logits, dim=-1)
labels = ["Minimum", "Mild", "Moderate", "Severe"]
print(f"Prediction: {labels[predictions.item()]}")
If you use this mode, please cite our research.