public class EntityExtractionResponse extends PipelineResponse
| Constructor and Description |
|---|
EntityExtractionResponse(Set<Entity> entities,
long extractionTime,
boolean successful)
Creates a response to a request to extract entities.
|
| Modifier and Type | Method and Description |
|---|---|
Set<Entity> |
getEntities()
Gets the extracted entities.
|
long |
getExtractionTime()
Gets the time spent in milliseconds extracting the entities.
|
boolean |
isSuccessful()
Indicates if the extraction was successful.
|
public EntityExtractionResponse(Set<Entity> entities, long extractionTime, boolean successful)
entities - A collection of Entity objects.extractionTime - The extraction time in milliseconds.successful - Indicates if the extraction was successful.public Set<Entity> getEntities()
public long getExtractionTime()
public boolean isSuccessful()
true if the extraction was successful.Copyright © 2018. All rights reserved.