cardiffnlp/tweet_eval
Viewer • Updated • 201k • 39.3k • 144
How to use GyverTc/bert-emotion with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="GyverTc/bert-emotion") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("GyverTc/bert-emotion")
model = AutoModelForSequenceClassification.from_pretrained("GyverTc/bert-emotion")# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("GyverTc/bert-emotion")
model = AutoModelForSequenceClassification.from_pretrained("GyverTc/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.8556 | 1.0 | 815 | 0.7854 | 0.7461 | 0.5929 | 0.6088 |
| 0.5369 | 2.0 | 1630 | 0.9014 | 0.7549 | 0.7278 | 0.7359 |
| 0.2571 | 3.0 | 2445 | 1.1413 | 0.7506 | 0.7243 | 0.7340 |
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="GyverTc/bert-emotion")