dair-ai/emotion
Viewer • Updated • 437k • 28.9k • 464
How to use macapa/clasificador-tweet-sentiment with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="macapa/clasificador-tweet-sentiment") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("macapa/clasificador-tweet-sentiment")
model = AutoModelForSequenceClassification.from_pretrained("macapa/clasificador-tweet-sentiment", device_map="auto")This model is a fine-tuned version of bert-base-uncased on the emotion 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 | Accuracy |
|---|---|---|---|---|
| 0.2519 | 1.0 | 2000 | 0.2530 | 0.9325 |
| 0.1783 | 2.0 | 4000 | 0.1745 | 0.9335 |
| 0.1048 | 3.0 | 6000 | 0.2235 | 0.9355 |