class Google::Apis::LanguageV1beta1::EntityMention

Represents a mention for an entity in the text. Currently, proper noun mentions are supported.

Attributes

text[RW]

Represents an output piece of text. Corresponds to the JSON property `text` @return [Google::Apis::LanguageV1beta1::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_v1beta1/classes.rb, line 421
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 426
def update!(**args)
  @text = args[:text] if args.key?(:text)
  @type = args[:type] if args.key?(:type)
end