Multiple emotion scores from readme example

#1
by joewright - opened

Hi,

Thanks for this model! Is there a way to get multiple emotion scores - as you do with the inference API - from the example in the readme?

Thanks!
Joe

The solution is to add a parameter return_all_scores=True in the pipeline for it to become:
emotion = pipeline('sentiment-analysis', model='arpanghoshal/EmoRoBERTa' , return_all_scores=True)

Credit: https://stackoverflow.com/a/71558260/7276452

Sign up or log in to comment