class Google::Apis::LanguageV1beta2::Token
Represents the smallest syntactic building block of the text.
Attributes
dependency_edge[RW]
Represents dependency parse tree information for a token. Corresponds to the JSON property `dependencyEdge` @return [Google::Apis::LanguageV1beta2::DependencyEdge]
lemma[RW]
[Lemma](en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token. Corresponds to the JSON property `lemma` @return [String]
part_of_speech[RW]
Represents part of speech information for a token. Corresponds to the JSON property `partOfSpeech` @return [Google::Apis::LanguageV1beta2::PartOfSpeech]
text[RW]
Represents an output piece of text. Corresponds to the JSON property `text` @return [Google::Apis::LanguageV1beta2::TextSpan]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/language_v1beta2/classes.rb, line 867 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_v1beta2/classes.rb, line 872 def update!(**args) @dependency_edge = args[:dependency_edge] if args.key?(:dependency_edge) @lemma = args[:lemma] if args.key?(:lemma) @part_of_speech = args[:part_of_speech] if args.key?(:part_of_speech) @text = args[:text] if args.key?(:text) end