class DependencyEdge extends Message

Represents dependency parse tree information for a token.

Protobuf type Google\Cloud\Language\V1beta2\DependencyEdge

Methods

__construct()

No description

int
getHeadTokenIndex()

Represents the head of this token in the dependency tree.

setHeadTokenIndex(int $var)

Represents the head of this token in the dependency tree.

int
getLabel()

The parse label for the token.

setLabel(int $var)

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;

Return Value

int

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;

Parameters

int $var

at line 77
int getLabel()

The parse label for the token.

Generated from protobuf field .google.cloud.language.v1beta2.DependencyEdge.Label label = 2;

Return Value

int

at line 88
setLabel(int $var)

The parse label for the token.

Generated from protobuf field .google.cloud.language.v1beta2.DependencyEdge.Label label = 2;

Parameters

int $var