dair-ai/emotion
Viewer • Updated • 437k • 33.4k • 440
How to use daspartho/text-emotion with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="daspartho/text-emotion") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("daspartho/text-emotion")
model = AutoModelForSequenceClassification.from_pretrained("daspartho/text-emotion")This model is a fine-tuned version of 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 |
|---|---|---|---|---|
| 1.0232 | 1.0 | 63 | 0.2424 | 0.917 |
| 0.1925 | 2.0 | 126 | 0.1600 | 0.934 |
| 0.1134 | 3.0 | 189 | 0.1418 | 0.935 |
| 0.076 | 4.0 | 252 | 0.1461 | 0.931 |
| 0.0604 | 5.0 | 315 | 0.1414 | 0.9367 |
Base model
distilbert/distilbert-base-uncased