google-research-datasets/go_emotions
Viewer β’ Updated β’ 265k β’ 27.7k β’ 278
How to use tasinhoque/roberta-large-go-emotions with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="tasinhoque/roberta-large-go-emotions") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("tasinhoque/roberta-large-go-emotions")
model = AutoModelForSequenceClassification.from_pretrained("tasinhoque/roberta-large-go-emotions", device_map="auto")This model is a fine-tuned version of roberta-large on the go_emotions dataset. It achieves the following results on the test set (with a threshold of 0.15):
Code for training this model can be found here.
The following hyperparameters were used during training:
| Training Loss | Epoch | Validation Loss | Accuracy | Precision | Recall | F1 |
|---|---|---|---|---|---|---|
| No log | 1.0 | 0.088978 | 0.404349 | 0.480763 | 0.456827 | 0.444685 |
| 0.10620 | 2.0 | 0.082806 | 0.411353 | 0.460896 | 0.536386 | 0.486819 |
| 0.10620 | 3.0 | 0.081338 | 0.420199 | 0.519828 | 0.561297 | 0.522716 |