@Generated(value="software.amazon.awssdk:codegen") public final class SyntaxToken extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SyntaxToken.Builder,SyntaxToken>
Represents a work in the input text that was recognized and assigned a part of speech. There is one syntax token record for each word in the source text.
Modifier and Type | Class and Description |
---|---|
static interface |
SyntaxToken.Builder |
Modifier and Type | Method and Description |
---|---|
Integer |
beginOffset()
The zero-based offset from the beginning of the source text to the first character in the word.
|
static SyntaxToken.Builder |
builder() |
Integer |
endOffset()
The zero-based offset from the beginning of the source text to the last character in the word.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
PartOfSpeechTag |
partOfSpeech()
Provides the part of speech label and the confidence level that Amazon Comprehend has that the part of speech was
correctly identified.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends SyntaxToken.Builder> |
serializableBuilderClass() |
String |
text()
The word that was recognized in the source text.
|
SyntaxToken.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
Integer |
tokenId()
A unique identifier for a token.
|
String |
toString() |
copy
public Integer tokenId()
A unique identifier for a token.
public String text()
The word that was recognized in the source text.
public Integer beginOffset()
The zero-based offset from the beginning of the source text to the first character in the word.
public Integer endOffset()
The zero-based offset from the beginning of the source text to the last character in the word.
public PartOfSpeechTag partOfSpeech()
Provides the part of speech label and the confidence level that Amazon Comprehend has that the part of speech was correctly identified. For more information, see how-syntax.
public SyntaxToken.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<SyntaxToken.Builder,SyntaxToken>
public static SyntaxToken.Builder builder()
public static Class<? extends SyntaxToken.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.