How to use sbenel/emotion-distilbert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="sbenel/emotion-distilbert")
# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("sbenel/emotion-distilbert") model = AutoModelForSequenceClassification.from_pretrained("sbenel/emotion-distilbert")
learning rate: 2e-5 epochs: 40 weight decay: 0.01 batch size: 16
acuraccy: 0.93 macro-F1 (macro avg): 0.88 best epoch: 15
Twitter-Sentiment-Analysis.