alexander1010/expon-emotions-ds
Viewer • Updated • 2.4k • 10
How to use alexander1010/expon-emotions with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="alexander1010/expon-emotions") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("alexander1010/expon-emotions")
model = AutoModelForSequenceClassification.from_pretrained("alexander1010/expon-emotions", device_map="auto")Modelo de clasificación de emociones en español para el proyecto Expon.
alexander1010/expon-emotionsalexander1010/expon-emotions-ds/srcfrom transformers import pipeline
clf = pipeline("text-classification", model="alexander1010/expon-emotions", top_k=None)
print(clf("Me siento motivado para mi exposición."))