Interface DependencyEdgeOrBuilder (2.16.0)

public interface DependencyEdgeOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getHeadTokenIndex()

public abstract 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.

int32 head_token_index = 1;

Returns
TypeDescription
int

The headTokenIndex.

getLabel()

public abstract DependencyEdge.Label getLabel()

The parse label for the token.

.google.cloud.language.v1.DependencyEdge.Label label = 2;

Returns
TypeDescription
DependencyEdge.Label

The label.

getLabelValue()

public abstract int getLabelValue()

The parse label for the token.

.google.cloud.language.v1.DependencyEdge.Label label = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for label.