class Google::Apis::LanguageV1::EntityMention
Represents a mention for an entity in the text. Currently, proper noun mentions are supported.
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::LanguageV1::Sentiment]
text[RW]
Represents an output piece of text. Corresponds to the JSON property `text` @return [Google::Apis::LanguageV1::TextSpan]
type[RW]
The type of the entity mention. Corresponds to the JSON property `type` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/language_v1/classes.rb, line 558 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_v1/classes.rb, line 563 def update!(**args) @sentiment = args[:sentiment] if args.key?(:sentiment) @text = args[:text] if args.key?(:text) @type = args[:type] if args.key?(:type) end