Downloads · 30 days
8
13% of all-time downloads
SrothJr/banglamentalBERT-sahajBERT-dapt
banglamentalBERT-sahajBERT-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 lightweight, efficient model based on ALBERT. optimized for low-resource environments.
Downloads · 30 days
8
13% of all-time downloads
All-time downloads
63
Public
Parameters
17.9M
71.8 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors71.8 MB · 97%
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 lightweight, efficient model based on ALBERT. optimized for low-resource environments.
The model outputs one of the following classes:
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
# Load the model
model_name = "SrothJr/banglamentalBERT-sahajBERT-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.