File size: 211 Bytes
1fc3836
 
 
 
 
 
 
1
2
3
4
5
6
7
from transformers import pipeline

emoroberta_emotion_classifier = pipeline(
    "text-classification", model="arpanghoshal/EmoRoBERTa", return_all_scores=True
)

emoroberta_emotion_classifier("Did this print?")