dair-ai/emotion
Viewer • Updated • 437k • 34.2k • 443
How to use mudogruer/electra-emotion with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="mudogruer/electra-emotion") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("mudogruer/electra-emotion")
model = AutoModelForSequenceClassification.from_pretrained("mudogruer/electra-emotion")# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("mudogruer/electra-emotion")
model = AutoModelForSequenceClassification.from_pretrained("mudogruer/electra-emotion")This model is a fine-tuned version of google/electra-base-discriminator 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.6777 | 1.0 | 500 | 0.2635 | 0.9155 |
| 0.186 | 2.0 | 1000 | 0.1598 | 0.935 |
| 0.113 | 3.0 | 1500 | 0.1403 | 0.944 |
Base model
google/electra-base-discriminator
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="mudogruer/electra-emotion")