public interface TokenOrBuilder extends MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
DependencyEdge |
getDependencyEdge()
Dependency tree parse for this token.
|
DependencyEdgeOrBuilder |
getDependencyEdgeOrBuilder()
Dependency tree parse for this token.
|
String |
getLemma()
[Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.
|
ByteString |
getLemmaBytes()
[Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.
|
PartOfSpeech |
getPartOfSpeech()
Parts of speech tag for this token.
|
PartOfSpeechOrBuilder |
getPartOfSpeechOrBuilder()
Parts of speech tag for this token.
|
TextSpan |
getText()
The token text.
|
TextSpanOrBuilder |
getTextOrBuilder()
The token text.
|
boolean |
hasDependencyEdge()
Dependency tree parse for this token.
|
boolean |
hasPartOfSpeech()
Parts of speech tag for this token.
|
boolean |
hasText()
The token text.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
isInitialized
boolean hasText()
The token text.
.google.cloud.language.v1.TextSpan text = 1;
TextSpan getText()
The token text.
.google.cloud.language.v1.TextSpan text = 1;
TextSpanOrBuilder getTextOrBuilder()
The token text.
.google.cloud.language.v1.TextSpan text = 1;
boolean hasPartOfSpeech()
Parts of speech tag for this token.
.google.cloud.language.v1.PartOfSpeech part_of_speech = 2;
PartOfSpeech getPartOfSpeech()
Parts of speech tag for this token.
.google.cloud.language.v1.PartOfSpeech part_of_speech = 2;
PartOfSpeechOrBuilder getPartOfSpeechOrBuilder()
Parts of speech tag for this token.
.google.cloud.language.v1.PartOfSpeech part_of_speech = 2;
boolean hasDependencyEdge()
Dependency tree parse for this token.
.google.cloud.language.v1.DependencyEdge dependency_edge = 3;
DependencyEdge getDependencyEdge()
Dependency tree parse for this token.
.google.cloud.language.v1.DependencyEdge dependency_edge = 3;
DependencyEdgeOrBuilder getDependencyEdgeOrBuilder()
Dependency tree parse for this token.
.google.cloud.language.v1.DependencyEdge dependency_edge = 3;
String getLemma()
[Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.
string lemma = 4;
ByteString getLemmaBytes()
[Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.
string lemma = 4;
Copyright © 2022 Google LLC. All rights reserved.