Multiple emotion scores from readme example
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)
getting the error
OSError: We couldn't connect to 'https://huggingface.co' to load this file, couldn't find it in the cached files and it looks like arpanghoshal/EmoRoBERTa is not the path to a directory containing a file named config.json.
Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'.
Can someone please assist with the error
Hi same here
did anyone solve it?
Got it you must use a token, like this
from transformers import pipeline
pipe = pipeline("text-classification", model="arpanghoshal/EmoRoBERTa", token=)