Text Classification
Transformers
Safetensors
English
distilbert
emotion-classification
synthetic-data
text-embeddings-inference
Run this model with HF Jobs
Run poupi9/clarify-emotion-classifier on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/poupi9/clarify-emotion-classifier. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/poupi9/clarify-emotion-classifier on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use poupi9/clarify-emotion-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use poupi9/clarify-emotion-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="poupi9/clarify-emotion-classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("poupi9/clarify-emotion-classifier") model = AutoModelForSequenceClassification.from_pretrained("poupi9/clarify-emotion-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Clarify emotion classifier
DistilBERT fine-tuned to detect the emotion behind a message in a romantic relationship. Built as an experiment around Clarify: Couple Dairy.
Prototype. This model is not used in the App Store app: its performance was not good enough. Do not rely on it to judge how a real person feels.
Code: Poupi9/clarify-ai-core
Classes
| Id | Label |
|---|---|
| 0 | JOY_AFFECTION |
| 1 | SADNESS_PAIN |
| 2 | ANGER_HOSTILITY |
| 3 | FEAR_ANXIETY |
| 4 | COMPLEX_SURPRISE |
Usage
from transformers import pipeline
classifier = pipeline("text-classification", model="poupi9/clarify-emotion-classifier")
classifier("have fun tonight do not worry about me")
Training
| Item | Value |
|---|---|
| Data | 100 synthetic English messages generated with Gemini, 20 per class |
| Preprocessing | lowercase, punctuation removed |
| Split | 80% training, 20% test (random_state=42) |
| Base model | distilbert-base-uncased |
| Training | 3 epochs, batch size 8 |
Evaluation
The training script computes accuracy and weighted F1, but no scores were saved, so none are reported here. The test set holds only 20 messages.
Limitations
- Very small dataset, entirely synthetic.
- English only.
- Not intended for any decision about a person, nor for health or psychological advice.
- Downloads last month
- 18
Model tree for poupi9/clarify-emotion-classifier
Base model
distilbert/distilbert-base-uncased