@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DetectEntitiesResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
DetectEntitiesResult() |
Modifier and Type | Method and Description |
---|---|
DetectEntitiesResult |
clone() |
boolean |
equals(Object obj) |
List<Entity> |
getEntities()
A collection of entities identified in the input text.
|
int |
hashCode() |
void |
setEntities(Collection<Entity> entities)
A collection of entities identified in the input text.
|
String |
toString()
Returns a string representation of this object.
|
DetectEntitiesResult |
withEntities(Collection<Entity> entities)
A collection of entities identified in the input text.
|
DetectEntitiesResult |
withEntities(Entity... entities)
A collection of entities identified in the input text.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<Entity> getEntities()
A collection of entities identified in the input text. For each entity, the response provides the entity text, entity type, where the entity text begins and ends, and the level of confidence that Amazon Comprehend has in the detection.
If your request uses a custom entity recognition model, Amazon Comprehend detects the entities that the model is trained to recognize. Otherwise, it detects the default entity types. For a list of default entity types, see how-entities.
If your request uses a custom entity recognition model, Amazon Comprehend detects the entities that the model is trained to recognize. Otherwise, it detects the default entity types. For a list of default entity types, see how-entities.
public void setEntities(Collection<Entity> entities)
A collection of entities identified in the input text. For each entity, the response provides the entity text, entity type, where the entity text begins and ends, and the level of confidence that Amazon Comprehend has in the detection.
If your request uses a custom entity recognition model, Amazon Comprehend detects the entities that the model is trained to recognize. Otherwise, it detects the default entity types. For a list of default entity types, see how-entities.
entities
- A collection of entities identified in the input text. For each entity, the response provides the entity
text, entity type, where the entity text begins and ends, and the level of confidence that Amazon
Comprehend has in the detection.
If your request uses a custom entity recognition model, Amazon Comprehend detects the entities that the model is trained to recognize. Otherwise, it detects the default entity types. For a list of default entity types, see how-entities.
public DetectEntitiesResult withEntities(Entity... entities)
A collection of entities identified in the input text. For each entity, the response provides the entity text, entity type, where the entity text begins and ends, and the level of confidence that Amazon Comprehend has in the detection.
If your request uses a custom entity recognition model, Amazon Comprehend detects the entities that the model is trained to recognize. Otherwise, it detects the default entity types. For a list of default entity types, see how-entities.
NOTE: This method appends the values to the existing list (if any). Use
setEntities(java.util.Collection)
or withEntities(java.util.Collection)
if you want to override
the existing values.
entities
- A collection of entities identified in the input text. For each entity, the response provides the entity
text, entity type, where the entity text begins and ends, and the level of confidence that Amazon
Comprehend has in the detection.
If your request uses a custom entity recognition model, Amazon Comprehend detects the entities that the model is trained to recognize. Otherwise, it detects the default entity types. For a list of default entity types, see how-entities.
public DetectEntitiesResult withEntities(Collection<Entity> entities)
A collection of entities identified in the input text. For each entity, the response provides the entity text, entity type, where the entity text begins and ends, and the level of confidence that Amazon Comprehend has in the detection.
If your request uses a custom entity recognition model, Amazon Comprehend detects the entities that the model is trained to recognize. Otherwise, it detects the default entity types. For a list of default entity types, see how-entities.
entities
- A collection of entities identified in the input text. For each entity, the response provides the entity
text, entity type, where the entity text begins and ends, and the level of confidence that Amazon
Comprehend has in the detection.
If your request uses a custom entity recognition model, Amazon Comprehend detects the entities that the model is trained to recognize. Otherwise, it detects the default entity types. For a list of default entity types, see how-entities.
public String toString()
toString
in class Object
Object.toString()
public DetectEntitiesResult clone()