I'm making a post request to the Text Analytics API to run sentiment analysis on a sample text and am successfully getting back the following response. Going by this response, I don't see a means to grab a single overall score for the document - just the individual positive, negative, or neutral scores. How do I get the overall score as I've seen in sample docs online?
Do I need to use the client library instead? Appreciate any help.
{
"documents":
[
{"id":"1",
"sentiment":"negative",
"confidenceScores”: {“positive":0.0,"neutral":0.0,"negative":1.0},
"sentences”: [
{“sentiment":"negative",
"confidenceScores":
{"positive":0.0,"neutral":0.0,"negative":1.0},
"offset":0,
"length":27,
"text": "['it is noisy outside']"
}
],
"warnings":[]}],
"errors":[],
"modelVersion":"2020-04-01"}