Downloads · 30 days
62
10% of all-time downloads
djonuzi/goemotions-emotion-model
goemotions-emotion-model is a text classification model from djonuzi. Use it when you need a label for a piece of text. It is set up for transformers.
This model is a fine-tuned version of distilbert-base-uncased for multi-label emotion classification. It predicts the probability of 28 possible emotions (27 emotion categories plus neutral). The model is trained usin…
Downloads · 30 days
62
10% of all-time downloads
All-time downloads
619
Public
Parameters
67M
536 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors268 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of distilbert-base-uncased for multi-label emotion classification. It predicts the probability of 28 possible emotions (27 emotion categories plus neutral). The model is trained using the GoEmotions dataset.
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.
Code used in the notebook:
model = AutoModelForSequenceClassification.from_pretrained(
"distilbert-base-uncased",
num_labels=28,
problem_type="multi_label_classification"
)