cardiffnlp/tweet_eval
Viewer • Updated • 201k • 37.3k • 143
How to use schoenml/bert-emotion with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="schoenml/bert-emotion") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("schoenml/bert-emotion")
model = AutoModelForSequenceClassification.from_pretrained("schoenml/bert-emotion")This model is a fine-tuned version of distilbert-base-cased on the tweet_eval 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 | Precision | Recall | Fscore |
|---|---|---|---|---|---|---|
| 0.8418 | 1.0 | 815 | 0.8129 | 0.7960 | 0.6242 | 0.6420 |
| 0.5222 | 2.0 | 1630 | 0.9663 | 0.7584 | 0.7196 | 0.7324 |
| 0.2662 | 3.0 | 2445 | 1.1531 | 0.7296 | 0.7266 | 0.7278 |