@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_PREFIX| Modifier and Type | Method and Description |
|---|---|
BatchDetectDominantLanguageResult |
batchDetectDominantLanguage(BatchDetectDominantLanguageRequest request)
Determines the dominant language of the input text for a batch of documents.
|
BatchDetectEntitiesResult |
batchDetectEntities(BatchDetectEntitiesRequest request)
Inspects the text of a batch of documents and returns information about them.
|
BatchDetectKeyPhrasesResult |
batchDetectKeyPhrases(BatchDetectKeyPhrasesRequest request)
Detects the key noun phrases found in a batch of documents.
|
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. |
static AmazonComprehendClientBuilder |
builder() |
DescribeTopicsDetectionJobResult |
describeTopicsDetectionJob(DescribeTopicsDetectionJobRequest request)
Gets the properties associated with a topic detection job.
|
DetectDominantLanguageResult |
detectDominantLanguage(DetectDominantLanguageRequest request)
Determines the dominant language of the input text.
|
DetectEntitiesResult |
detectEntities(DetectEntitiesRequest request)
Inspects text for entities, and returns information about them.
|
DetectKeyPhrasesResult |
detectKeyPhrases(DetectKeyPhrasesRequest request)
Detects the key noun phrases found in the text.
|
DetectSentimentResult |
detectSentiment(DetectSentimentRequest request)
Inspects text and returns an inference of the prevailing sentiment (
POSITIVE, NEUTRAL,
MIXED, or NEGATIVE). |
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful, request, typically used for debugging issues
where a service isn't acting as expected.
|
ListTopicsDetectionJobsResult |
listTopicsDetectionJobs(ListTopicsDetectionJobsRequest request)
Gets a list of the topic detection jobs that you have submitted.
|
StartTopicsDetectionJobResult |
startTopicsDetectionJob(StartTopicsDetectionJobRequest request)
Starts an asynchronous topic detection job.
|
addRequestHandler, 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 and returns information about them. For more information about 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 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 entities, and returns information about them. For more information, about 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 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 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 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.