@Generated(value="software.amazon.awssdk:codegen") public final class Entity extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Entity.Builder,Entity>
Provides information about an entity.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Entity.Builder |
| Modifier and Type | Method and Description |
|---|---|
Integer |
beginOffset()
A character offset in the input text that shows where the entity begins (the first character is at position 0).
|
static Entity.Builder |
builder() |
Integer |
endOffset()
A character offset in the input text that shows where the entity ends.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Float |
score()
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Entity.Builder> |
serializableBuilderClass() |
String |
text()
The text of the entity.
|
Entity.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
EntityType |
type()
The entity's type.
|
String |
typeAsString()
The entity's type.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Float score()
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
public final EntityType type()
The entity's type.
If the service returns an enum value that is not available in the current SDK version, type will return
EntityType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
EntityTypepublic final String typeAsString()
The entity's type.
If the service returns an enum value that is not available in the current SDK version, type will return
EntityType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
EntityTypepublic final String text()
The text of the entity.
public final Integer beginOffset()
A character offset in the input text that shows where the entity begins (the first character is at position 0). The offset returns the position of each UTF-8 code point in the string. A code point is the abstract character from a particular graphical representation. For example, a multi-byte UTF-8 character maps to a single code point.
public final Integer endOffset()
A character offset in the input text that shows where the entity ends. The offset returns the position of each UTF-8 code point in the string. A code point is the abstract character from a particular graphical representation. For example, a multi-byte UTF-8 character maps to a single code point.
public Entity.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Entity.Builder,Entity>public static Entity.Builder builder()
public static Class<? extends Entity.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.