@Generated(value="software.amazon.awssdk:codegen") public class Entity extends Object implements StructuredPojo, 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) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
Float |
score()
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
|
static Class<? extends Entity.Builder> |
serializableBuilderClass() |
String |
text()
The text of the entity.
|
Entity.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
EntityType |
type()
The entity's type.
|
String |
typeAsString()
The entity's type.
|
copypublic Float score()
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
public 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 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 String text()
The text of the entity.
public 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 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()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<Entity.Builder,Entity>public static Entity.Builder builder()
public static Class<? extends Entity.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.