Downloads · 30 days
5
22% of all-time downloads
moeMachineLearning/emotions-classifier-1.0
emotions-classifier-1.0 is a text classification model from moeMachineLearning. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
This model is a fine-tuned version of distilbert-base-uncased on the dair-ai/emotion dataset.
Downloads · 30 days
5
22% of all-time downloads
All-time downloads
23
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 on the dair-ai/emotion dataset.
This model is a fine-tuned version of DistilBERT for emotion classification tasks. It is trained on the dair-ai/emotion dataset, which contains short text samples categorized into six emotions:
The model uses the lightweight DistilBERT architecture, making it efficient for deployment while maintaining strong performance on text classification tasks.
dair-ai/emotion).-Training Dataset: dair-ai/emotion (16,000 examples)
The model achieved a strong performance on the dair-ai/emotion validation dataset, indicating its ability to classify text into six emotion categories effectively.
The following hyperparameters were used during training:
adamw_torch with betas=(0.9, 0.999) and epsilon=1e-08from transformers import pipeline
# Load the fine-tuned model
classifier = pipeline("text-classification", model="moeMachineLearning/emotion-classifier-1.0")
# Test texts
texts = [
"I am so happy today!",
"This is the worst day of my life.",
"I'm feeling a bit nervous about tomorrow's event.",
]
# Run predictions
for text in texts:
result = classifier(text)
print(f"Text: {text}")
print(f"Prediction: {result}\n")