class Google::Apis::LanguageV1::Token
Represents the smallest syntactic building block of the text.
Attributes
Represents dependency parse tree information for a token. (For more information on dependency labels, see www.aclweb.org/anthology/P13-2017 Corresponds to the JSON property `dependencyEdge` @return [Google::Apis::LanguageV1::DependencyEdge]
[Lemma](en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token. Corresponds to the JSON property `lemma` @return [String]
Represents part of speech information for a token. Parts of speech are as defined in www.lrec-conf.org/proceedings/lrec2012/pdf/274_Paper.pdf Corresponds to the JSON property `partOfSpeech` @return [Google::Apis::LanguageV1::PartOfSpeech]
Represents an output piece of text. Corresponds to the JSON property `text` @return [Google::Apis::LanguageV1::TextSpan]
Public Class Methods
# File lib/google/apis/language_v1/classes.rb, line 847 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/language_v1/classes.rb, line 852 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