Natural Language V1beta2 API - Class Google::Cloud::Language::V1beta2::DependencyEdge (v0.11.1)

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

Represents dependency parse tree information for a token.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#head_token_index

def head_token_index() -> ::Integer
Returns
  • (::Integer) — Represents the head of this token in the dependency tree. This is the index of the token which has an arc going to this token. The index is the position of the token in the array of tokens returned by the API method. If this token is a root token, then the head_token_index is its own index.

#head_token_index=

def head_token_index=(value) -> ::Integer
Parameter
  • value (::Integer) — Represents the head of this token in the dependency tree. This is the index of the token which has an arc going to this token. The index is the position of the token in the array of tokens returned by the API method. If this token is a root token, then the head_token_index is its own index.
Returns
  • (::Integer) — Represents the head of this token in the dependency tree. This is the index of the token which has an arc going to this token. The index is the position of the token in the array of tokens returned by the API method. If this token is a root token, then the head_token_index is its own index.

#label

def label() -> ::Google::Cloud::Language::V1beta2::DependencyEdge::Label
Returns

#label=

def label=(value) -> ::Google::Cloud::Language::V1beta2::DependencyEdge::Label
Parameter
Returns