Text Classification
Transformers
Safetensors
English
distilbert
mental-health
transformer
depression
anxiety
clinical-nlp
huggingface
Eval Results (legacy)
text-embeddings-inference
Instructions to use dsuram/distilbert-mentalhealth-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dsuram/distilbert-mentalhealth-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="dsuram/distilbert-mentalhealth-classifier")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("dsuram/distilbert-mentalhealth-classifier") model = AutoModelForSequenceClassification.from_pretrained("dsuram/distilbert-mentalhealth-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -174,15 +174,5 @@ predicted_class_id = torch.argmax(logits, dim=1).item()
|
|
| 174 |
label_map = model.config.id2label
|
| 175 |
print(f"Predicted label: {label_map[predicted_class_id]}")
|
| 176 |
---
|
| 177 |
-
---
|
| 178 |
-
|
| 179 |
-
```bibtex
|
| 180 |
-
@misc{distilbert-mentalhealth,
|
| 181 |
-
author = {Dileep Reddy Suram},
|
| 182 |
-
title = {DistilBERT Mental Health Classifier},
|
| 183 |
-
howpublished = {\url{https://huggingface.co/dsuram/distilbert-mentalhealth-classifier}},
|
| 184 |
-
year = {2025}
|
| 185 |
-
}
|
| 186 |
|
| 187 |
-
---
|
| 188 |
|
|
|
|
| 174 |
label_map = model.config.id2label
|
| 175 |
print(f"Predicted label: {label_map[predicted_class_id]}")
|
| 176 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 177 |
|
|
|
|
| 178 |
|