CAMeL-Lab / camel_tools

A suite of Arabic natural language processing tools developed by the CAMeL Lab at New York University Abu Dhabi.
MIT License
413 stars 73 forks source link

[QUESTION] Confidence Score #100

Closed JayR7 closed 2 years ago

JayR7 commented 2 years ago

Greetings, I have a quick question, is there a way to get the confidence scores of each document's sentiment?

Thanks!

balhafni commented 2 years ago

We do not expose the softmax probability distribution over the predicted labels but you can access them from here: https://github.com/CAMeL-Lab/camel_tools/blob/d2ca29c8771cd7cf0753e6bf65b7bac28b814bc6/camel_tools/sentiment/__init__.py#L164