cardiffnlp/tweet_eval
Viewer • Updated • 201k • 37.3k • 143
How to use coreybrady/bert-emotion with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="coreybrady/bert-emotion") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("coreybrady/bert-emotion")
model = AutoModelForSequenceClassification.from_pretrained("coreybrady/bert-emotion")# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("coreybrady/bert-emotion")
model = AutoModelForSequenceClassification.from_pretrained("coreybrady/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.8561 | 1.0 | 815 | 0.7844 | 0.7575 | 0.6081 | 0.6253 |
| 0.5337 | 2.0 | 1630 | 0.9080 | 0.7567 | 0.7236 | 0.7325 |
| 0.2573 | 3.0 | 2445 | 1.1670 | 0.7262 | 0.7255 | 0.7253 |
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="coreybrady/bert-emotion")