dair-ai/emotion
Viewer • Updated • 437k • 37.5k • 449
How to use lilyray/bert_emotion with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="lilyray/bert_emotion") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("lilyray/bert_emotion")
model = AutoModelForSequenceClassification.from_pretrained("lilyray/bert_emotion", device_map="auto")This model is a fine-tuned version of google-bert/bert-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.2371 | 1.0 | 2000 | 0.2012 | 0.926 |
| 0.1461 | 2.0 | 4000 | 0.1714 | 0.939 |
| 0.0978 | 3.0 | 6000 | 0.1956 | 0.9365 |
Base model
google-bert/bert-base-uncased