Class: Google::Cloud::Language::V1::EntityMention

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/language/v1/language_service.rb

Overview

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

Defined Under Namespace

Modules: Type

Instance Attribute Summary collapse

Instance Attribute Details

#sentiment::Google::Cloud::Language::V1::Sentiment

Returns For calls to [AnalyzeEntitySentiment][] or if AnnotateTextRequest.Features.extract_entity_sentiment is set to true, this field will contain the sentiment expressed for this mention of the entity in the provided document.

Returns:



858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
# File 'proto_docs/google/cloud/language/v1/language_service.rb', line 858

class EntityMention
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The supported types of mentions.
  module Type
    # Unknown
    TYPE_UNKNOWN = 0

    # Proper name
    PROPER = 1

    # Common noun (or noun compound)
    COMMON = 2
  end
end

#text::Google::Cloud::Language::V1::TextSpan

Returns The mention text.

Returns:



858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
# File 'proto_docs/google/cloud/language/v1/language_service.rb', line 858

class EntityMention
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The supported types of mentions.
  module Type
    # Unknown
    TYPE_UNKNOWN = 0

    # Proper name
    PROPER = 1

    # Common noun (or noun compound)
    COMMON = 2
  end
end

#type::Google::Cloud::Language::V1::EntityMention::Type

Returns The type of the entity mention.

Returns:



858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
# File 'proto_docs/google/cloud/language/v1/language_service.rb', line 858

class EntityMention
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The supported types of mentions.
  module Type
    # Unknown
    TYPE_UNKNOWN = 0

    # Proper name
    PROPER = 1

    # Common noun (or noun compound)
    COMMON = 2
  end
end