Natural Language V1 API - Class Google::Cloud::Language::V1::DependencyEdge (v0.10.0)

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

Represents dependency parse tree information for a token. (For more information on dependency labels, see http://www.aclweb.org/anthology/P13-2017

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::V1::DependencyEdge::Label
Returns

#label=

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