emotions-entailment/zero-shot-emotions
Viewer • Updated • 279k • 59
How to use emotions-entailment/roberta-raw with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="emotions-entailment/roberta-raw") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("emotions-entailment/roberta-raw")
model = AutoModelForSequenceClassification.from_pretrained("emotions-entailment/roberta-raw")This model is a fine-tuned version of FacebookAI/roberta-base. It achieves the following results on the evaluation set:
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | F1 Macro | F1 Micro | Precision Micro | Recall Micro | Validation Loss |
|---|---|---|---|---|---|---|---|
| 1.1898 | 1.0 | 10479 | 0.7956 | 0.8419 | 0.8473 | 0.8367 | 0.3967 |
| 1.1891 | 2.0 | 20958 | 0.8115 | 0.8554 | 0.8658 | 0.8454 | 0.3942 |
Base model
FacebookAI/roberta-base