google-research-datasets/go_emotions
Viewer β’ Updated β’ 265k β’ 22k β’ 260
How to use mmadu/emotion-classifier-distilbert with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="mmadu/emotion-classifier-distilbert") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("mmadu/emotion-classifier-distilbert")
model = AutoModelForSequenceClassification.from_pretrained("mmadu/emotion-classifier-distilbert")This model is a fine-tuned version of distilbert-base-uncased for emotion classification. It classifies text into 6 emotions:
The model was fine-tuned on the Go Emotions dataset, filtered to these 6 emotion categories.
from transformers import pipeline
classifier = pipeline('text-classification', model='your-username/emotion-classifier-distilbert')
result = classifier('I love this amazing product!')
print(f"Emotion: {result[0]['label']}, Confidence: {result[0]['score']:.3f}")
This model is suitable for emotion analysis in text, customer feedback analysis, sentiment-aware chatbots, and social media monitoring.