class Google::Apis::LanguageV1beta2::AnalyzeEntitySentimentResponse
The entity-level sentiment analysis response message.
Attributes
entities[RW]
The recognized entities in the input document with associated sentiments. Corresponds to the JSON property `entities` @return [Array<Google::Apis::LanguageV1beta2::Entity>]
language[RW]
The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See Document.language
field for more details. Corresponds to the JSON property `language` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/language_v1beta2/classes.rb, line 120 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/language_v1beta2/classes.rb, line 125 def update!(**args) @entities = args[:entities] if args.key?(:entities) @language = args[:language] if args.key?(:language) end