Natural Language V1beta2 API - Class Google::Cloud::Language::V1beta2::EntityMention (v0.9.0)

Reference documentation and code samples for the Natural Language V1beta2 API class Google::Cloud::Language::V1beta2::EntityMention.

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

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#sentiment

def sentiment() -> ::Google::Cloud::Language::V1beta2::Sentiment
Returns

#sentiment=

def sentiment=(value) -> ::Google::Cloud::Language::V1beta2::Sentiment
Parameter
Returns

#text

def text() -> ::Google::Cloud::Language::V1beta2::TextSpan
Returns

#text=

def text=(value) -> ::Google::Cloud::Language::V1beta2::TextSpan
Parameter
Returns

#type

def type() -> ::Google::Cloud::Language::V1beta2::EntityMention::Type
Returns

#type=

def type=(value) -> ::Google::Cloud::Language::V1beta2::EntityMention::Type
Parameter
Returns