@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonComprehendClient extends AmazonWebServiceClient implements AmazonComprehend
Amazon Comprehend is an AWS service for gaining insight into the content of documents. Use these actions to determine the topics contained in your documents, the topics they discuss, the predominant sentiment expressed in them, the predominant language used, and more.
LOGGING_AWS_REQUEST_METRICENDPOINT_PREFIXaddRequestHandler, addRequestHandler, configureRegion, getEndpointPrefix, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, shutdown, withEndpoint, withRegion, withRegion, withTimeOffsetequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitshutdownpublic static AmazonComprehendClientBuilder builder()
public BatchDetectDominantLanguageResult batchDetectDominantLanguage(BatchDetectDominantLanguageRequest request)
Determines the dominant language of the input text for a batch of documents. For a list of languages that Amazon Comprehend can detect, see Amazon Comprehend Supported Languages.
batchDetectDominantLanguage in interface AmazonComprehendbatchDetectDominantLanguageRequest - InvalidRequestException - The request is invalid.TextSizeLimitExceededException - The size of the input text exceeds the limit. Use a smaller document.BatchSizeLimitExceededException - The number of documents in the request exceeds the limit of 25. Try your request again with fewer
documents.InternalServerException - An internal server error occurred. Retry your request.public BatchDetectEntitiesResult batchDetectEntities(BatchDetectEntitiesRequest request)
Inspects the text of a batch of documents for named entities and returns information about them. For more information about named entities, see how-entities
batchDetectEntities in interface AmazonComprehendbatchDetectEntitiesRequest - InvalidRequestException - The request is invalid.TextSizeLimitExceededException - The size of the input text exceeds the limit. Use a smaller document.UnsupportedLanguageException - Amazon Comprehend can't process the language of the input text. For all APIs except
DetectDominantLanguage, Amazon Comprehend accepts only English or Spanish text. For the
DetectDominantLanguage API, Amazon Comprehend detects 100 languages. For a list of
languages, see how-languagesBatchSizeLimitExceededException - The number of documents in the request exceeds the limit of 25. Try your request again with fewer
documents.InternalServerException - An internal server error occurred. Retry your request.public BatchDetectKeyPhrasesResult batchDetectKeyPhrases(BatchDetectKeyPhrasesRequest request)
Detects the key noun phrases found in a batch of documents.
batchDetectKeyPhrases in interface AmazonComprehendbatchDetectKeyPhrasesRequest - InvalidRequestException - The request is invalid.TextSizeLimitExceededException - The size of the input text exceeds the limit. Use a smaller document.UnsupportedLanguageException - Amazon Comprehend can't process the language of the input text. For all APIs except
DetectDominantLanguage, Amazon Comprehend accepts only English or Spanish text. For the
DetectDominantLanguage API, Amazon Comprehend detects 100 languages. For a list of
languages, see how-languagesBatchSizeLimitExceededException - The number of documents in the request exceeds the limit of 25. Try your request again with fewer
documents.InternalServerException - An internal server error occurred. Retry your request.public BatchDetectSentimentResult batchDetectSentiment(BatchDetectSentimentRequest request)
Inspects a batch of documents and returns an inference of the prevailing sentiment, POSITIVE,
NEUTRAL, MIXED, or NEGATIVE, in each one.
batchDetectSentiment in interface AmazonComprehendbatchDetectSentimentRequest - InvalidRequestException - The request is invalid.TextSizeLimitExceededException - The size of the input text exceeds the limit. Use a smaller document.UnsupportedLanguageException - Amazon Comprehend can't process the language of the input text. For all APIs except
DetectDominantLanguage, Amazon Comprehend accepts only English or Spanish text. For the
DetectDominantLanguage API, Amazon Comprehend detects 100 languages. For a list of
languages, see how-languagesBatchSizeLimitExceededException - The number of documents in the request exceeds the limit of 25. Try your request again with fewer
documents.InternalServerException - An internal server error occurred. Retry your request.public DescribeDominantLanguageDetectionJobResult describeDominantLanguageDetectionJob(DescribeDominantLanguageDetectionJobRequest request)
Gets the properties associated with a dominant language detection job. Use this operation to get the status of a detection job.
describeDominantLanguageDetectionJob in interface AmazonComprehenddescribeDominantLanguageDetectionJobRequest - InvalidRequestException - The request is invalid.JobNotFoundException - The specified job was not found. Check the job ID and try again.TooManyRequestsException - The number of requests exceeds the limit. Resubmit your request later.InternalServerException - An internal server error occurred. Retry your request.public DescribeEntitiesDetectionJobResult describeEntitiesDetectionJob(DescribeEntitiesDetectionJobRequest request)
Gets the properties associated with an entities detection job. Use this operation to get the status of a detection job.
describeEntitiesDetectionJob in interface AmazonComprehenddescribeEntitiesDetectionJobRequest - InvalidRequestException - The request is invalid.JobNotFoundException - The specified job was not found. Check the job ID and try again.TooManyRequestsException - The number of requests exceeds the limit. Resubmit your request later.InternalServerException - An internal server error occurred. Retry your request.public DescribeKeyPhrasesDetectionJobResult describeKeyPhrasesDetectionJob(DescribeKeyPhrasesDetectionJobRequest request)
Gets the properties associated with a key phrases detection job. Use this operation to get the status of a detection job.
describeKeyPhrasesDetectionJob in interface AmazonComprehenddescribeKeyPhrasesDetectionJobRequest - InvalidRequestException - The request is invalid.JobNotFoundException - The specified job was not found. Check the job ID and try again.TooManyRequestsException - The number of requests exceeds the limit. Resubmit your request later.InternalServerException - An internal server error occurred. Retry your request.public DescribeSentimentDetectionJobResult describeSentimentDetectionJob(DescribeSentimentDetectionJobRequest request)
Gets the properties associated with a sentiment detection job. Use this operation to get the status of a detection job.
describeSentimentDetectionJob in interface AmazonComprehenddescribeSentimentDetectionJobRequest - InvalidRequestException - The request is invalid.JobNotFoundException - The specified job was not found. Check the job ID and try again.TooManyRequestsException - The number of requests exceeds the limit. Resubmit your request later.InternalServerException - An internal server error occurred. Retry your request.public DescribeTopicsDetectionJobResult describeTopicsDetectionJob(DescribeTopicsDetectionJobRequest request)
Gets the properties associated with a topic detection job. Use this operation to get the status of a detection job.
describeTopicsDetectionJob in interface AmazonComprehenddescribeTopicsDetectionJobRequest - InvalidRequestException - The request is invalid.JobNotFoundException - The specified job was not found. Check the job ID and try again.TooManyRequestsException - The number of requests exceeds the limit. Resubmit your request later.InternalServerException - An internal server error occurred. Retry your request.public DetectDominantLanguageResult detectDominantLanguage(DetectDominantLanguageRequest request)
Determines the dominant language of the input text. For a list of languages that Amazon Comprehend can detect, see Amazon Comprehend Supported Languages.
detectDominantLanguage in interface AmazonComprehenddetectDominantLanguageRequest - InvalidRequestException - The request is invalid.TextSizeLimitExceededException - The size of the input text exceeds the limit. Use a smaller document.InternalServerException - An internal server error occurred. Retry your request.public DetectEntitiesResult detectEntities(DetectEntitiesRequest request)
Inspects text for named entities, and returns information about them. For more information, about named entities, see how-entities.
detectEntities in interface AmazonComprehenddetectEntitiesRequest - InvalidRequestException - The request is invalid.TextSizeLimitExceededException - The size of the input text exceeds the limit. Use a smaller document.UnsupportedLanguageException - Amazon Comprehend can't process the language of the input text. For all APIs except
DetectDominantLanguage, Amazon Comprehend accepts only English or Spanish text. For the
DetectDominantLanguage API, Amazon Comprehend detects 100 languages. For a list of
languages, see how-languagesInternalServerException - An internal server error occurred. Retry your request.public DetectKeyPhrasesResult detectKeyPhrases(DetectKeyPhrasesRequest request)
Detects the key noun phrases found in the text.
detectKeyPhrases in interface AmazonComprehenddetectKeyPhrasesRequest - InvalidRequestException - The request is invalid.TextSizeLimitExceededException - The size of the input text exceeds the limit. Use a smaller document.UnsupportedLanguageException - Amazon Comprehend can't process the language of the input text. For all APIs except
DetectDominantLanguage, Amazon Comprehend accepts only English or Spanish text. For the
DetectDominantLanguage API, Amazon Comprehend detects 100 languages. For a list of
languages, see how-languagesInternalServerException - An internal server error occurred. Retry your request.public DetectSentimentResult detectSentiment(DetectSentimentRequest request)
Inspects text and returns an inference of the prevailing sentiment (POSITIVE, NEUTRAL,
MIXED, or NEGATIVE).
detectSentiment in interface AmazonComprehenddetectSentimentRequest - InvalidRequestException - The request is invalid.TextSizeLimitExceededException - The size of the input text exceeds the limit. Use a smaller document.UnsupportedLanguageException - Amazon Comprehend can't process the language of the input text. For all APIs except
DetectDominantLanguage, Amazon Comprehend accepts only English or Spanish text. For the
DetectDominantLanguage API, Amazon Comprehend detects 100 languages. For a list of
languages, see how-languagesInternalServerException - An internal server error occurred. Retry your request.public ListDominantLanguageDetectionJobsResult listDominantLanguageDetectionJobs(ListDominantLanguageDetectionJobsRequest request)
Gets a list of the dominant language detection jobs that you have submitted.
listDominantLanguageDetectionJobs in interface AmazonComprehendlistDominantLanguageDetectionJobsRequest - InvalidRequestException - The request is invalid.TooManyRequestsException - The number of requests exceeds the limit. Resubmit your request later.InvalidFilterException - The filter specified for the ListTopicDetectionJobs operation is invalid. Specify a
different filter.InternalServerException - An internal server error occurred. Retry your request.public ListEntitiesDetectionJobsResult listEntitiesDetectionJobs(ListEntitiesDetectionJobsRequest request)
Gets a list of the entity detection jobs that you have submitted.
listEntitiesDetectionJobs in interface AmazonComprehendlistEntitiesDetectionJobsRequest - InvalidRequestException - The request is invalid.TooManyRequestsException - The number of requests exceeds the limit. Resubmit your request later.InvalidFilterException - The filter specified for the ListTopicDetectionJobs operation is invalid. Specify a
different filter.InternalServerException - An internal server error occurred. Retry your request.public ListKeyPhrasesDetectionJobsResult listKeyPhrasesDetectionJobs(ListKeyPhrasesDetectionJobsRequest request)
Get a list of key phrase detection jobs that you have submitted.
listKeyPhrasesDetectionJobs in interface AmazonComprehendlistKeyPhrasesDetectionJobsRequest - InvalidRequestException - The request is invalid.TooManyRequestsException - The number of requests exceeds the limit. Resubmit your request later.InvalidFilterException - The filter specified for the ListTopicDetectionJobs operation is invalid. Specify a
different filter.InternalServerException - An internal server error occurred. Retry your request.public ListSentimentDetectionJobsResult listSentimentDetectionJobs(ListSentimentDetectionJobsRequest request)
Gets a list of sentiment detection jobs that you have submitted.
listSentimentDetectionJobs in interface AmazonComprehendlistSentimentDetectionJobsRequest - InvalidRequestException - The request is invalid.TooManyRequestsException - The number of requests exceeds the limit. Resubmit your request later.InvalidFilterException - The filter specified for the ListTopicDetectionJobs operation is invalid. Specify a
different filter.InternalServerException - An internal server error occurred. Retry your request.public ListTopicsDetectionJobsResult listTopicsDetectionJobs(ListTopicsDetectionJobsRequest request)
Gets a list of the topic detection jobs that you have submitted.
listTopicsDetectionJobs in interface AmazonComprehendlistTopicsDetectionJobsRequest - InvalidRequestException - The request is invalid.TooManyRequestsException - The number of requests exceeds the limit. Resubmit your request later.InvalidFilterException - The filter specified for the ListTopicDetectionJobs operation is invalid. Specify a
different filter.InternalServerException - An internal server error occurred. Retry your request.public StartDominantLanguageDetectionJobResult startDominantLanguageDetectionJob(StartDominantLanguageDetectionJobRequest request)
Starts an asynchronous dominant language detection job for a collection of documents. Use the operation to track the status of a job.
startDominantLanguageDetectionJob in interface AmazonComprehendstartDominantLanguageDetectionJobRequest - InvalidRequestException - The request is invalid.TooManyRequestsException - The number of requests exceeds the limit. Resubmit your request later.InternalServerException - An internal server error occurred. Retry your request.public StartEntitiesDetectionJobResult startEntitiesDetectionJob(StartEntitiesDetectionJobRequest request)
Starts an asynchronous entity detection job for a collection of documents. Use the operation to track the status of a job.
startEntitiesDetectionJob in interface AmazonComprehendstartEntitiesDetectionJobRequest - InvalidRequestException - The request is invalid.TooManyRequestsException - The number of requests exceeds the limit. Resubmit your request later.InternalServerException - An internal server error occurred. Retry your request.public StartKeyPhrasesDetectionJobResult startKeyPhrasesDetectionJob(StartKeyPhrasesDetectionJobRequest request)
Starts an asynchronous key phrase detection job for a collection of documents. Use the operation to track the status of a job.
startKeyPhrasesDetectionJob in interface AmazonComprehendstartKeyPhrasesDetectionJobRequest - InvalidRequestException - The request is invalid.TooManyRequestsException - The number of requests exceeds the limit. Resubmit your request later.InternalServerException - An internal server error occurred. Retry your request.public StartSentimentDetectionJobResult startSentimentDetectionJob(StartSentimentDetectionJobRequest request)
Starts an asynchronous sentiment detection job for a collection of documents. use the operation to track the status of a job.
startSentimentDetectionJob in interface AmazonComprehendstartSentimentDetectionJobRequest - InvalidRequestException - The request is invalid.TooManyRequestsException - The number of requests exceeds the limit. Resubmit your request later.InternalServerException - An internal server error occurred. Retry your request.public StartTopicsDetectionJobResult startTopicsDetectionJob(StartTopicsDetectionJobRequest request)
Starts an asynchronous topic detection job. Use the DescribeTopicDetectionJob operation to track the
status of a job.
startTopicsDetectionJob in interface AmazonComprehendstartTopicsDetectionJobRequest - InvalidRequestException - The request is invalid.TooManyRequestsException - The number of requests exceeds the limit. Resubmit your request later.InternalServerException - An internal server error occurred. Retry your request.public StopDominantLanguageDetectionJobResult stopDominantLanguageDetectionJob(StopDominantLanguageDetectionJobRequest request)
Stops a dominant language detection job in progress.
If the job state is IN_PROGRESS the job will be marked for termination and put into the
STOPPING state.
If the job is in the COMPLETED or FAILED state when you call the
StopDominantLanguageDetectionJob operation, the operation will return a 400 Internal Request
Exception.
When a job is stopped, any document that has already been processed will be written to the output location.
stopDominantLanguageDetectionJob in interface AmazonComprehendstopDominantLanguageDetectionJobRequest - InvalidRequestException - The request is invalid.JobNotFoundException - The specified job was not found. Check the job ID and try again.InternalServerException - An internal server error occurred. Retry your request.public StopEntitiesDetectionJobResult stopEntitiesDetectionJob(StopEntitiesDetectionJobRequest request)
Stops an entities detection job in progress.
If the job state is IN_PROGRESS the job will be marked for termination and put into the
STOPPING state.
If the job is in the COMPLETED or FAILED state when you call the
StopDominantLanguageDetectionJob operation, the operation will return a 400 Internal Request
Exception.
When a job is stopped, any document that has already been processed will be written to the output location.
stopEntitiesDetectionJob in interface AmazonComprehendstopEntitiesDetectionJobRequest - InvalidRequestException - The request is invalid.JobNotFoundException - The specified job was not found. Check the job ID and try again.InternalServerException - An internal server error occurred. Retry your request.public StopKeyPhrasesDetectionJobResult stopKeyPhrasesDetectionJob(StopKeyPhrasesDetectionJobRequest request)
Stops a key phrases detection job in progress.
If the job state is IN_PROGRESS the job will be marked for termination and put into the
STOPPING state.
If the job is in the COMPLETED or FAILED state when you call the
StopDominantLanguageDetectionJob operation, the operation will return a 400 Internal Request
Exception.
When a job is stopped, any document that has already been processed will be written to the output location.
stopKeyPhrasesDetectionJob in interface AmazonComprehendstopKeyPhrasesDetectionJobRequest - InvalidRequestException - The request is invalid.JobNotFoundException - The specified job was not found. Check the job ID and try again.InternalServerException - An internal server error occurred. Retry your request.public StopSentimentDetectionJobResult stopSentimentDetectionJob(StopSentimentDetectionJobRequest request)
Stops a sentiment detection job in progress.
If the job state is IN_PROGRESS the job will be marked for termination and put into the
STOPPING state.
If the job is in the COMPLETED or FAILED state when you call the
StopDominantLanguageDetectionJob operation, the operation will return a 400 Internal Request
Exception.
When a job is stopped, any document that has already been processed will be written to the output location.
stopSentimentDetectionJob in interface AmazonComprehendstopSentimentDetectionJobRequest - InvalidRequestException - The request is invalid.JobNotFoundException - The specified job was not found. Check the job ID and try again.InternalServerException - An internal server error occurred. Retry your request.public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing the request.
getCachedResponseMetadata in interface AmazonComprehendrequest - The originally executed requestCopyright © 2013 Amazon Web Services, Inc. All Rights Reserved.