Views
No views yet
dair-ai/emotion dataset, which contains short text samples categorized into six emotions:dair-ai/emotion).dair-ai/emotion validation dataset, indicating its ability to classify text into six emotion categories effectively.adamw_torch with betas=(0.9, 0.999) and epsilon=1e-081from transformers import pipeline
2
3# Load the fine-tuned model
4classifier = pipeline("text-classification", model="moeMachineLearning/emotion-classifier-1.0")
5
6# Test texts
7texts = [
8 "I am so happy today!",
9 "This is the worst day of my life.",
10 "I'm feeling a bit nervous about tomorrow's event.",
11]
12
13# Run predictions
14for text in texts:
15 result = classifier(text)
16 print(f"Text: {text}")
17 print(f"Prediction: {result}\n")