Token
class Token extends Message
Represents the smallest syntactic building block of the text.
Protobuf type Google\Cloud\Language\V1beta2\Token
Methods
No description
Parts of speech tag for this token.
Dependency tree parse for this token.
Details
at line 43
__construct()
at line 54
TextSpan
getText()
The token text.
Generated from protobuf field .google.cloud.language.v1beta2.TextSpan text = 1;
at line 65
setText(TextSpan $var)
The token text.
Generated from protobuf field .google.cloud.language.v1beta2.TextSpan text = 1;
at line 77
PartOfSpeech
getPartOfSpeech()
Parts of speech tag for this token.
Generated from protobuf field .google.cloud.language.v1beta2.PartOfSpeech part_of_speech = 2;
at line 88
setPartOfSpeech(PartOfSpeech $var)
Parts of speech tag for this token.
Generated from protobuf field .google.cloud.language.v1beta2.PartOfSpeech part_of_speech = 2;
at line 100
DependencyEdge
getDependencyEdge()
Dependency tree parse for this token.
Generated from protobuf field .google.cloud.language.v1beta2.DependencyEdge dependency_edge = 3;
at line 111
setDependencyEdge(DependencyEdge $var)
Dependency tree parse for this token.
Generated from protobuf field .google.cloud.language.v1beta2.DependencyEdge dependency_edge = 3;
at line 123
string
getLemma()
Lemma of the token.
Generated from protobuf field string lemma = 4;
at line 134
setLemma(string $var)
Lemma of the token.
Generated from protobuf field string lemma = 4;