question

absolutealgorithm avatar image
1 Vote"
absolutealgorithm asked ramr-msft rolled back

Text Translator - Sentiment Analysis

Hi, please look at the json response object. my document has the following text - "The food and service were unacceptable, but the concierge were nice" why is this text considered to be positive? I think it should be negative? please help me understand this.

 "sentences": [
         {
           "sentiment": "positive",
           "confidenceScores": {
             "positive": 0.84,
             "neutral": 0.0,
             "negative": 0.16
           },
           "offset": 0,
           "length": 67,
           "text": "The food and service were unacceptable, but the concierge were nice"
         }
       ],
azure-cognitive-servicesazure-text-analytics
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ramr-msft avatar image
0 Votes"
ramr-msft answered ramr-msft rolled back

@absolutealgorithm Thanks, Please use the Opinion Mining feature of Sentiment Analysis, starting in version 3.1. Also known as Aspect-based Sentiment Analysis in Natural Language Processing (NLP), this feature provides more granular information about the opinions related to attributes of products or services in text.

To get Opinion Mining in your results, you must include the opinionMining=true flag in a request for sentiment analysis.
Here Sentiment Analysis might only report a positive sentiment in this case.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.