DependencyEdge
class DependencyEdge extends Message
Represents dependency parse tree information for a token.
Protobuf type Google\Cloud\Language\V1beta2\DependencyEdge
Methods
No description
Represents the head of this token in the dependency tree.
Represents the head of this token in the dependency tree.
The parse label for the token.
The parse label for the token.
Details
at line 35
__construct()
at line 50
int
getHeadTokenIndex()
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.
Generated from protobuf field int32 head_token_index = 1;
at line 65
setHeadTokenIndex(int $var)
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.
Generated from protobuf field int32 head_token_index = 1;
at line 77
int
getLabel()
The parse label for the token.
Generated from protobuf field .google.cloud.language.v1beta2.DependencyEdge.Label label = 2;
at line 88
setLabel(int $var)
The parse label for the token.
Generated from protobuf field .google.cloud.language.v1beta2.DependencyEdge.Label label = 2;