@Generated(value="software.amazon.awssdk:codegen") public final class PartOfSpeechTag extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PartOfSpeechTag.Builder,PartOfSpeechTag>
Identifies the part of speech represented by the token and gives the confidence that Amazon Comprehend has that the part of speech was correctly identified. For more information about the parts of speech that Amazon Comprehend can identify, see Syntax in the Comprehend Developer Guide.
| Modifier and Type | Class and Description |
|---|---|
static interface |
PartOfSpeechTag.Builder |
| Modifier and Type | Method and Description |
|---|---|
static PartOfSpeechTag.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Float |
score()
The confidence that Amazon Comprehend has that the part of speech was correctly identified.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends PartOfSpeechTag.Builder> |
serializableBuilderClass() |
PartOfSpeechTagType |
tag()
Identifies the part of speech that the token represents.
|
String |
tagAsString()
Identifies the part of speech that the token represents.
|
PartOfSpeechTag.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final PartOfSpeechTagType tag()
Identifies the part of speech that the token represents.
If the service returns an enum value that is not available in the current SDK version, tag will return
PartOfSpeechTagType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
tagAsString().
PartOfSpeechTagTypepublic final String tagAsString()
Identifies the part of speech that the token represents.
If the service returns an enum value that is not available in the current SDK version, tag will return
PartOfSpeechTagType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
tagAsString().
PartOfSpeechTagTypepublic final Float score()
The confidence that Amazon Comprehend has that the part of speech was correctly identified.
public PartOfSpeechTag.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<PartOfSpeechTag.Builder,PartOfSpeechTag>public static PartOfSpeechTag.Builder builder()
public static Class<? extends PartOfSpeechTag.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.