Class PartOfSpeechTag
- java.lang.Object
-
- software.amazon.awssdk.services.comprehend.model.PartOfSpeechTag
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PartOfSpeechTag.Builder,PartOfSpeechTag>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePartOfSpeechTag.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PartOfSpeechTag.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Floatscore()The confidence that Amazon Comprehend has that the part of speech was correctly identified.List<SdkField<?>>sdkFields()static Class<? extends PartOfSpeechTag.Builder>serializableBuilderClass()PartOfSpeechTagTypetag()Identifies the part of speech that the token represents.StringtagAsString()Identifies the part of speech that the token represents.PartOfSpeechTag.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
tag
public 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,
tagwill returnPartOfSpeechTagType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtagAsString().- Returns:
- Identifies the part of speech that the token represents.
- See Also:
PartOfSpeechTagType
-
tagAsString
public 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,
tagwill returnPartOfSpeechTagType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtagAsString().- Returns:
- Identifies the part of speech that the token represents.
- See Also:
PartOfSpeechTagType
-
score
public final Float score()
The confidence that Amazon Comprehend has that the part of speech was correctly identified.
- Returns:
- The confidence that Amazon Comprehend has that the part of speech was correctly identified.
-
toBuilder
public PartOfSpeechTag.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PartOfSpeechTag.Builder,PartOfSpeechTag>
-
builder
public static PartOfSpeechTag.Builder builder()
-
serializableBuilderClass
public static Class<? extends PartOfSpeechTag.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-