cardiffnlp/tweet_eval
Viewer • Updated • 201k • 41.4k • 144
How to use gabella/bert-emotion with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="gabella/bert-emotion") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("gabella/bert-emotion")
model = AutoModelForSequenceClassification.from_pretrained("gabella/bert-emotion")# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("gabella/bert-emotion")
model = AutoModelForSequenceClassification.from_pretrained("gabella/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.8468 | 1.0 | 815 | 0.7465 | 0.7116 | 0.6096 | 0.6325 |
| 0.5105 | 2.0 | 1630 | 0.9035 | 0.7532 | 0.7111 | 0.7276 |
| 0.2492 | 3.0 | 2445 | 1.1951 | 0.7350 | 0.7334 | 0.7341 |
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="gabella/bert-emotion")