This classifier takes in a short piece of text and outputs a list of emotions along with confidence scores.
Not intended for clinical, legal, or high-stakes decision-making.
Dataset: GoEmotions
Source: https://huggingface.co/datasets/go_emotions
Size: ~58,000 text examples
Labels: 28 emotions (multi-label)
Each example is annotated with zero or more emotions. The dataset is designed for studying fine-grained emotional expressions in short natural language.
1model = AutoModelForSequenceClassification.from_pretrained(
2 "distilbert-base-uncased",
3 num_labels=28,
4 problem_type="multi_label_classification"
5)