cardiffnlp/tweet_eval
Viewer • Updated • 201k • 26.3k • 147
How to use tamarab/bert-emotion with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="tamarab/bert-emotion") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("tamarab/bert-emotion")
model = AutoModelForSequenceClassification.from_pretrained("tamarab/bert-emotion", device_map="auto")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.8385 | 1.0 | 815 | 0.8366 | 0.7865 | 0.5968 | 0.6014 |
| 0.5451 | 2.0 | 1630 | 0.9301 | 0.7301 | 0.6826 | 0.6947 |
| 0.2447 | 3.0 | 2445 | 1.1347 | 0.7463 | 0.7096 | 0.7209 |