class Google::Apis::LanguageV1beta2::Sentence

Represents a sentence in the input document.

Attributes

sentiment[RW]

Represents the feeling associated with the entire text or entities in the text. Next ID: 6 Corresponds to the JSON property `sentiment` @return [Google::Apis::LanguageV1beta2::Sentiment]

text[RW]

Represents an output piece of text. Corresponds to the JSON property `text` @return [Google::Apis::LanguageV1beta2::TextSpan]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/language_v1beta2/classes.rb, line 740
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 745
def update!(**args)
  @sentiment = args[:sentiment] if args.key?(:sentiment)
  @text = args[:text] if args.key?(:text)
end