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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eDependencyEdge\u003c/code\u003e class in the Google Cloud Natural Language v1 API represents dependency parse tree information for a token, and it is available in multiple versions with the latest being 3.7.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDependencyEdge\u003c/code\u003e inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides two constructors: a default one \u003ccode\u003eDependencyEdge()\u003c/code\u003e and one to copy another \u003ccode\u003eDependencyEdge\u003c/code\u003e object \u003ccode\u003eDependencyEdge(DependencyEdge other)\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt has properties \u003ccode\u003eHeadTokenIndex\u003c/code\u003e, representing the head of a token in the dependency tree, and \u003ccode\u003eLabel\u003c/code\u003e, which provides the parse label for the token, of type \u003ccode\u003eDependencyEdge.Types.Label\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation provides a link to further information on dependency labels, available at http://www.aclweb.org/anthology/P13-2017.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Natural Language v1 API - Class DependencyEdge (3.7.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.7.0 (latest)](/dotnet/docs/reference/Google.Cloud.Language.V1/latest/Google.Cloud.Language.V1.DependencyEdge)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Language.V1/3.6.0/Google.Cloud.Language.V1.DependencyEdge)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Language.V1/3.5.0/Google.Cloud.Language.V1.DependencyEdge)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Language.V1/3.4.0/Google.Cloud.Language.V1.DependencyEdge)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Language.V1/3.3.0/Google.Cloud.Language.V1.DependencyEdge)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Language.V1/3.2.0/Google.Cloud.Language.V1.DependencyEdge)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Language.V1/3.1.0/Google.Cloud.Language.V1.DependencyEdge)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Language.V1/3.0.0/Google.Cloud.Language.V1.DependencyEdge)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Language.V1/2.3.0/Google.Cloud.Language.V1.DependencyEdge)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Language.V1/2.2.0/Google.Cloud.Language.V1.DependencyEdge) \n\n public sealed class DependencyEdge : IMessage\u003cDependencyEdge\u003e, IEquatable\u003cDependencyEdge\u003e, IDeepCloneable\u003cDependencyEdge\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Natural Language v1 API class DependencyEdge.\n\nRepresents dependency parse tree information for a token. (For more\ninformation on dependency labels, see\n\u003chttp://www.aclweb.org/anthology/P13-2017\u003e \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e DependencyEdge \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[DependencyEdge](/dotnet/docs/reference/Google.Cloud.Language.V1/latest/Google.Cloud.Language.V1.DependencyEdge), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DependencyEdge](/dotnet/docs/reference/Google.Cloud.Language.V1/latest/Google.Cloud.Language.V1.DependencyEdge), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[DependencyEdge](/dotnet/docs/reference/Google.Cloud.Language.V1/latest/Google.Cloud.Language.V1.DependencyEdge), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Language.V1](/dotnet/docs/reference/Google.Cloud.Language.V1/latest/Google.Cloud.Language.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Language.V1.dll\n\nConstructors\n------------\n\n### DependencyEdge()\n\n public DependencyEdge()\n\n### DependencyEdge(DependencyEdge)\n\n public DependencyEdge(DependencyEdge other)\n\nProperties\n----------\n\n### HeadTokenIndex\n\n public int HeadTokenIndex { get; set; }\n\nRepresents the head of this token in the dependency tree.\nThis is the index of the token which has an arc going to this token.\nThe index is the position of the token in the array of tokens returned\nby the API method. If this token is a root token, then the\n`head_token_index` is its own index.\n\n### Label\n\n public DependencyEdge.Types.Label Label { get; set; }\n\nThe parse label for the token."]]