Instructions to use ihabiko/deberta-v3-base-emotion-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ihabiko/deberta-v3-base-emotion-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ihabiko/deberta-v3-base-emotion-model")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("ihabiko/deberta-v3-base-emotion-model") model = AutoModelForSequenceClassification.from_pretrained("ihabiko/deberta-v3-base-emotion-model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Model Card for Model ID
Model Details
Model Description
This model is fine-tuned on the dair-ai/emotion dataset for multi-class emotion classification.
- Developed by: Ihab Shhadat
- Funded by: Not applicable
- Shared by: Ihab Shhadat (@ihabiko)
- Model type: Transformer-based text classification (DeBERTa-v3-base)
- Language(s): English
- License: Apache 2.0
- Finetuned from model: microsoft/deberta-v3-base
Uses
Direct Use
This model can be used to classify English sentences into one of six emotions:
- sadness
- joy
- love
- anger
- fear
- surprise
Downstream Use
Can be used as an emotion component in dialogue systems, sentiment dashboards, or social media analytics.
Out-of-Scope Use
- Not suitable for medical, legal, or safety-critical applications.
- Not reliable for mixed-language or sarcasm-heavy texts.
- Not intended for non-English text.
How to Get Started with the Model
from transformers import pipeline
classifier = pipeline("text-classification", model="ihabiko/deberta-v3-base-emotion-model")
classifier("I'm feeling great today!")
[More Information Needed]
- Downloads last month
- 5