Downloads · 30 days
35
43% of all-time downloads
anisha-14/Mentify-DistilBERT
Mentify-DistilBERT is a text classification model from anisha-14. Use it when you need a label for a piece of text. The card lists the license as apache-2.0.
Downloads · 30 days
35
43% of all-time downloads
All-time downloads
81
Public
Parameters
67M
268 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors268 MB · 100%
From the Hugging Face model README
Fine-tuned DistilBERT model for mental-wellness text classification into 7 categories.
distilbert-base-uncasedpip install transformers torch
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
model_name = "anisha-14/Mentify-DistilBERT"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)
text = "I have been feeling stressed lately."
inputs = tokenizer(
text,
return_tensors="pt",
truncation=True,
padding=True
)
with torch.no_grad():
outputs = model(**inputs)
prediction = torch.argmax(outputs.logits, dim=1).item()
print(model.config.id2label[prediction])
The model is used in MentiFy (mentalGUARDIAN) to classify user responses from a wellness questionnaire. Multiple predictions are combined using a majority-based approach to determine the final category.
Disclaimer: This model is for educational and wellness-support purposes only and is not a medical diagnostic tool.