dair-ai/emotion
Viewer • Updated • 437k • 33.4k • 440
How to use yangswei/emotion_text_classification with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="yangswei/emotion_text_classification") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("yangswei/emotion_text_classification")
model = AutoModelForSequenceClassification.from_pretrained("yangswei/emotion_text_classification")This model is a fine-tuned version of distilbert/distilbert-base-uncased on the emotion dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 0.2533 | 1.0 | 1000 | 0.2368 | 0.92 |
| 0.1498 | 2.0 | 2000 | 0.1792 | 0.932 |
| 0.1115 | 3.0 | 3000 | 0.1850 | 0.923 |
| 0.0872 | 4.0 | 4000 | 0.2053 | 0.926 |
| 0.0582 | 5.0 | 5000 | 0.2226 | 0.9225 |
Base model
distilbert/distilbert-base-uncased