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-08 from 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")
model.safetensors 268 MBtraining_args.bin 5.3 kB