cardiffnlp/tweet_eval
Viewer • Updated • 201k • 45.6k • 144
How to use cnicu/tweet_emotions_classifier with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="cnicu/tweet_emotions_classifier") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("cnicu/tweet_emotions_classifier")
model = AutoModelForSequenceClassification.from_pretrained("cnicu/tweet_emotions_classifier")This model is a fine-tuned version of distilbert-base-uncased on the tweet_eval dataset. It achieves the following results on the evaluation set:
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 0.8464 | 1.0 | 408 | 0.6180 | 0.7931 |
| 0.4583 | 2.0 | 816 | 0.5700 | 0.8037 |