Downloads · 30 days
0
JamieYCR/goemotions-chatbot-emotion-classifier
goemotions-chatbot-emotion-classifier is a text classification model from JamieYCR. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
This repository contains a production export of a DeBERTa-v3-large emotion classifier trained with:
Downloads · 30 days
0
Access
Public
Updated Apr 26, 2026
Repo size
1.7 GB
Likes
0
Public
Click a slice to open those files.
.safetensors1.7 GB · 100%
From the Hugging Face model README
This repository contains a production export of a DeBERTa-v3-large emotion classifier trained with:
Only Head A is included in this export.
The model predicts user emotional signals for chatbot applications. Production inference returns the top 3 emotions with probabilities and prompt-ready wording for an LLM.
Production behavior merges three unreliable low-support GoEmotions classes:
grief -> sadnesspride -> admirationrelief -> joyThis gives a 25-label production label space while preserving the original raw 28-way logits for inspection.
Held-out GoEmotions test set:
0.52850.53380.41430.0595Chatbot-domain validation set, 249 labelled examples, production merged 25-label space:
0.45680.47390.45860.1757The production-domain score passes the chosen deployment gate of weighted F1 >= 0.43.
encoder/: DeBERTa-v3-large encoder weights and config.tokenizer/: tokenizer files.head_a.pt: production GoEmotions classification head.metadata.json: training metadata, label list, and validation metadata.inference.py: standalone local inference helper.After downloading the repo:
python inference.py --model-dir . --text "I tried everything and I'm worried I broke the account."
For prompt-ready LLM formatting:
python inference.py --model-dir . --text "I tried everything and I'm worried I broke the account." --output-format llm
Expected output shape:
User emotional signals (top 3):
- Primary: fear (confidence: 0.XX)
- Secondary: confusion (confidence: 0.XX)
- Tertiary: sadness (confidence: 0.XX)
Interpretation: User likely feels fear.
AutoModelForSequenceClassification checkpoint.nervousness, neutral, annoyance, approval, and caring.Recommended confidence handling:
>= 0.50: high confidence.0.35 - 0.50: medium confidence.< 0.35: low confidence; treat emotional state as unclear.The model was trained on GoEmotions with MELD as an auxiliary dialogue-context task. It was then validated on a small in-domain chatbot example set.