class Google::Apis::LanguageV1beta1::DependencyEdge
Represents dependency parse tree information for a token.
Attributes
head_token_index[RW]
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. Corresponds to the JSON property `headTokenIndex` @return [Fixnum]
label[RW]
The parse label for the token. Corresponds to the JSON property `label` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/language_v1beta1/classes.rb, line 296 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/language_v1beta1/classes.rb, line 301 def update!(**args) @head_token_index = args[:head_token_index] if args.key?(:head_token_index) @label = args[:label] if args.key?(:label) end