Reference documentation and code samples for the Cloud Natural Language V1 Client class Token.
Represents the smallest syntactic building block of the text.
Generated from protobuf message google.cloud.language.v1.Token
Namespace
Google \ Cloud \ Language \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ text
↳ part_of_speech
↳ dependency_edge
↳ lemma
getText
The token text.
hasText
clearText
setText
The token text.
$this
getPartOfSpeech
Parts of speech tag for this token.
hasPartOfSpeech
clearPartOfSpeech
setPartOfSpeech
Parts of speech tag for this token.
$this
getDependencyEdge
Dependency tree parse for this token.
hasDependencyEdge
clearDependencyEdge
setDependencyEdge
Dependency tree parse for this token.
$this
getLemma
Lemma of the token.
string
setLemma
Lemma of the token.
var
string
$this