Score of all classes

#7
by alextyche - opened

Hi, i'm using this code in python:

classifier = pipeline('sentiment-analysis',
model="nlptown/bert-base-multilingual-uncased-sentiment")
results = classifier(['Hi, how are you', 'hello, i'm great'])

I obtain the star rating (from 1 to 5) and the score for that number of stars. However, i would like to obtain the score for all possible star ratings. How can i do that?

Thank you very much for your attention.

Use the return_all_scores param to get all label scores.
Example: classifier(['Hi, how are you', 'hello, i'm great'], return_all_scores=True) should return a list of dicts for each string.

hi can you help me knowing what these star actually mean?

Sign up or log in to comment