public sealed class DependencyEdge : IMessage<DependencyEdge>, IEquatable<DependencyEdge>, IDeepCloneable<DependencyEdge>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Natural Language v1 API class DependencyEdge.
Represents dependency parse tree information for a token. (For more information on dependency labels, see http://www.aclweb.org/anthology/P13-2017
Implements
IMessageDependencyEdge, IEquatableDependencyEdge, IDeepCloneableDependencyEdge, IBufferMessage, IMessageNamespace
Google.Cloud.Language.V1Assembly
Google.Cloud.Language.V1.dll
Constructors
DependencyEdge()
public DependencyEdge()
DependencyEdge(DependencyEdge)
public DependencyEdge(DependencyEdge other)
Parameter | |
---|---|
Name | Description |
other | DependencyEdge |
Properties
HeadTokenIndex
public int HeadTokenIndex { get; set; }
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.
Property Value | |
---|---|
Type | Description |
int |
Label
public DependencyEdge.Types.Label Label { get; set; }
The parse label for the token.
Property Value | |
---|---|
Type | Description |
DependencyEdgeTypesLabel |