dair-ai/emotion
Viewer โข Updated โข 437k โข 37.3k โข 488
DistilBERT fine-tuned (transfer learning) on the dair-ai/emotion dataset to classify English text into 6 emotions: sadness, joy, love, anger, fear, surprise.
from transformers import pipeline
clf = pipeline("text-classification", model="MarwanSalim023/emotion-detector")
print(clf("I just got my first job offer!"))
Base model
distilbert/distilbert-base-uncased