Downloads · 30 days
4
8% of all-time downloads
JeslynSaminathan/Mental-Health-Chatbot-using-RoBERTa-fine-tuned-on-GoEmotion
Mental-Health-Chatbot-using-RoBERTa-fine-tuned-on-GoEmotion is a text classification model from JeslynSaminathan. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
This model is a fine-tuned version of RoBERTa-base, specifically designed to perform multi-label emotion classification. It has been trained on the GoEmotions dataset, a comprehensive dataset containing 28 emotion cat…
Downloads · 30 days
4
8% of all-time downloads
All-time downloads
50
Public
Repo size
3 GB
Likes
0
Public
Click a slice to open those files.
.bin499 MB · 99%
From the Hugging Face model README
This model is a fine-tuned version of RoBERTa-base, specifically designed to perform multi-label emotion classification. It has been trained on the GoEmotions dataset, a comprehensive dataset containing 28 emotion categories from Reddit comments. This model is optimized for applications requiring nuanced emotion analysis, such as mental health chatbots, sentiment analysis, and customer interaction systems.
Key Features:
The full project, including the chatbot implementation and fine-tuning code, can be found at: GitHub Repository
The model achieved the following performance metrics on the GoEmotions dataset:
| Metric | Value |
|---|---|
| Macro F1-Score | 0.74 |
| ROC-AUC | 0.95 |
Additional Benchmark:
The repository includes:
tokenizer.json, tokenizer_config.json, and vocab.json.model_weights.pth.special_tokens_map.json.These files are essential for reproducing the model or deploying it into other systems.
To load the model and tokenizer:
from transformers import AutoTokenizer, AutoModelForSequenceClassification
# Load the tokenizer and model
tokenizer = AutoTokenizer.from_pretrained("kashyaparun/Mental-Health-Chatbot-using-RoBERTa")
model = AutoModelForSequenceClassification.from_pretrained("kashyaparun/Mental-Health-Chatbot-using-RoBERTa")
# Perform inference
text = "I'm feeling so joyful today!"
inputs = tokenizer(text, return_tensors="pt", padding=True, truncation=True)
outputs = model(**inputs)
# Emotion logits
print(outputs.logits)