SentimentAnalysisResult

The result of sentiment analysis. Sentiment analysis inspects user input and identifies the prevailing subjective opinion, especially to determine a user's attitude as positive, negative, or neutral. For [DetectIntent][], it needs to be configured in DetectIntentRequest.query_params . For [StreamingDetectIntent][], it needs to be configured in StreamingDetectIntentRequest.query_params . And for Participants.AnalyzeContent and Participants.StreamingAnalyzeContent , it needs to be configured in ConversationProfile.human_agent_assistant_config

JSON representation
 { 
 "queryTextSentiment" 
 : 
 { 
 object (  Sentiment 
 
) 
 } 
 } 
Fields
queryTextSentiment

object ( Sentiment )

The sentiment analysis result for queryText .

Sentiment

The sentiment, such as positive/negative feeling or association, for a unit of analysis, such as the query text. See: https://cloud.google.com/natural-language/docs/basics#interpreting_sentiment_analysis_values for how to interpret the result.

JSON representation
 { 
 "score" 
 : 
 number 
 , 
 "magnitude" 
 : 
 number 
 } 
Fields
score

number

Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment).

magnitude

number

A non-negative number in the [0, +inf) range, which represents the absolute magnitude of sentiment, regardless of score (positive or negative).

Design a Mobile Site
View Site in Mobile | Classic
Share by: