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
- (::Google::Cloud::Language::V1::DependencyEdge::Label) — The parse label for the token.
#label=
def label=(value) -> ::Google::Cloud::Language::V1::DependencyEdge::Label
Parameter
- value (::Google::Cloud::Language::V1::DependencyEdge::Label) — The parse label for the token.
Returns
- (::Google::Cloud::Language::V1::DependencyEdge::Label) — The parse label for the token.