File size: 1,251 Bytes
af9d627 bf0fcf0 4badf24 bf0fcf0 4badf24 bf0fcf0 4badf24 bf0fcf0 4badf24 bf0fcf0 4badf24 bf0fcf0 4badf24 bf0fcf0 4badf24 bf0fcf0 4badf24 bf0fcf0 4badf24 bf0fcf0 4badf24 bf0fcf0 4badf24 bf0fcf0 4badf24 bf0fcf0 4badf24 bf0fcf0 4badf24 bf0fcf0 4badf24 bf0fcf0 4badf24 bf0fcf0 af9d627 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | ---
base_model:
- sagorsarker/bangla-bert-base
---
# 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
```python
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}
}
``` |