dair-ai/emotion
Viewer • Updated • 437k • 33.7k • 449
How to use bhadresh-savani/bertweet-base-finetuned-emotion with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="bhadresh-savani/bertweet-base-finetuned-emotion") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("bhadresh-savani/bertweet-base-finetuned-emotion")
model = AutoModelForSequenceClassification.from_pretrained("bhadresh-savani/bertweet-base-finetuned-emotion", device_map="auto")This model is a fine-tuned version of vinai/bertweet-base 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 | F1 |
|---|---|---|---|---|---|
| 0.9469 | 1.0 | 250 | 0.3643 | 0.895 | 0.8921 |
| 0.2807 | 2.0 | 500 | 0.2173 | 0.9245 | 0.9252 |
| 0.1749 | 3.0 | 750 | 0.1859 | 0.926 | 0.9266 |
| 0.1355 | 4.0 | 1000 | 0.1737 | 0.929 | 0.9296 |