@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) |
boolean |
equalsBySdkFields(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() |
Integer |
tokenId()
A unique identifier for a token.
|
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Integer tokenId()
A unique identifier for a token.
public final String text()
The word that was recognized in the source text.
public final Integer beginOffset()
The zero-based offset from the beginning of the source text to the first character in the word.
public final Integer endOffset()
The zero-based offset from the beginning of the source text to the last character in the word.
public final 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 Syntax in the Comprehend Developer Guide.
public SyntaxToken.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<SyntaxToken.Builder,SyntaxToken>public static SyntaxToken.Builder builder()
public static Class<? extends SyntaxToken.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.