class Google::Apis::LanguageV1beta1::Sentence
Represents a sentence in the input document.
Attributes
sentiment[RW]
Represents the feeling associated with the entire text or entities in the text. Corresponds to the JSON property `sentiment` @return [Google::Apis::LanguageV1beta1::Sentiment]
text[RW]
Represents an output piece of text. Corresponds to the JSON property `text` @return [Google::Apis::LanguageV1beta1::TextSpan]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/language_v1beta1/classes.rb, line 566 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_v1beta1/classes.rb, line 571 def update!(**args) @sentiment = args[:sentiment] if args.key?(:sentiment) @text = args[:text] if args.key?(:text) end