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_METRIC
Constructor and Description |
---|
AmazonComprehendClient()
Deprecated.
|
AmazonComprehendClient(AWSCredentials awsCredentials)
Constructs a new client to invoke service methods on AmazonComprehend
using the specified AWS account credentials.
|
AmazonComprehendClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on AmazonComprehend
using the specified AWS account credentials and client configuration
options.
|
AmazonComprehendClient(AWSCredentialsProvider awsCredentialsProvider)
Constructs a new client to invoke service methods on AmazonComprehend
using the specified AWS account credentials provider.
|
AmazonComprehendClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on AmazonComprehend
using the specified AWS account credentials provider and client
configuration options.
|
AmazonComprehendClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
HttpClient httpClient)
Constructs a new client to invoke service methods on AmazonComprehend
using the specified AWS account credentials provider, client
configuration options and request metric collector.
|
AmazonComprehendClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
com.amazonaws.metrics.RequestMetricCollector requestMetricCollector)
Deprecated.
|
AmazonComprehendClient(ClientConfiguration clientConfiguration)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
BatchDetectDominantLanguageResult |
batchDetectDominantLanguage(BatchDetectDominantLanguageRequest batchDetectDominantLanguageRequest)
Determines the dominant language of the input text for a batch of
documents.
|
BatchDetectEntitiesResult |
batchDetectEntities(BatchDetectEntitiesRequest batchDetectEntitiesRequest)
Inspects the text of a batch of documents for named entities and returns
information about them.
|
BatchDetectKeyPhrasesResult |
batchDetectKeyPhrases(BatchDetectKeyPhrasesRequest batchDetectKeyPhrasesRequest)
Detects the key noun phrases found in a batch of documents.
|
BatchDetectSentimentResult |
batchDetectSentiment(BatchDetectSentimentRequest batchDetectSentimentRequest)
Inspects a batch of documents and returns an inference of the prevailing
sentiment,
POSITIVE , NEUTRAL ,
MIXED , or NEGATIVE , in each one. |
BatchDetectSyntaxResult |
batchDetectSyntax(BatchDetectSyntaxRequest batchDetectSyntaxRequest)
Inspects the text of a batch of documents for the syntax and part of
speech of the words in the document and returns information about them.
|
ClassifyDocumentResult |
classifyDocument(ClassifyDocumentRequest classifyDocumentRequest)
Creates a new document classification request to analyze a single
document in real-time, using a previously created and trained custom
model and an endpoint.
|
CreateDocumentClassifierResult |
createDocumentClassifier(CreateDocumentClassifierRequest createDocumentClassifierRequest)
Creates a new document classifier that you can use to categorize
documents.
|
CreateEndpointResult |
createEndpoint(CreateEndpointRequest createEndpointRequest)
Creates a model-specific endpoint for synchronous inference for a
previously trained custom model
|
CreateEntityRecognizerResult |
createEntityRecognizer(CreateEntityRecognizerRequest createEntityRecognizerRequest)
Creates an entity recognizer using submitted files.
|
DeleteDocumentClassifierResult |
deleteDocumentClassifier(DeleteDocumentClassifierRequest deleteDocumentClassifierRequest)
Deletes a previously created document classifier
|
DeleteEndpointResult |
deleteEndpoint(DeleteEndpointRequest deleteEndpointRequest)
Deletes a model-specific endpoint for a previously-trained custom model.
|
DeleteEntityRecognizerResult |
deleteEntityRecognizer(DeleteEntityRecognizerRequest deleteEntityRecognizerRequest)
Deletes an entity recognizer.
|
DescribeDocumentClassificationJobResult |
describeDocumentClassificationJob(DescribeDocumentClassificationJobRequest describeDocumentClassificationJobRequest)
Gets the properties associated with a document classification job.
|
DescribeDocumentClassifierResult |
describeDocumentClassifier(DescribeDocumentClassifierRequest describeDocumentClassifierRequest)
Gets the properties associated with a document classifier.
|
DescribeDominantLanguageDetectionJobResult |
describeDominantLanguageDetectionJob(DescribeDominantLanguageDetectionJobRequest describeDominantLanguageDetectionJobRequest)
Gets the properties associated with a dominant language detection job.
|
DescribeEndpointResult |
describeEndpoint(DescribeEndpointRequest describeEndpointRequest)
Gets the properties associated with a specific endpoint.
|
DescribeEntitiesDetectionJobResult |
describeEntitiesDetectionJob(DescribeEntitiesDetectionJobRequest describeEntitiesDetectionJobRequest)
Gets the properties associated with an entities detection job.
|
DescribeEntityRecognizerResult |
describeEntityRecognizer(DescribeEntityRecognizerRequest describeEntityRecognizerRequest)
Provides details about an entity recognizer including status, S3 buckets
containing training data, recognizer metadata, metrics, and so on.
|
DescribeEventsDetectionJobResult |
describeEventsDetectionJob(DescribeEventsDetectionJobRequest describeEventsDetectionJobRequest)
Gets the status and details of an events detection job.
|
DescribeKeyPhrasesDetectionJobResult |
describeKeyPhrasesDetectionJob(DescribeKeyPhrasesDetectionJobRequest describeKeyPhrasesDetectionJobRequest)
Gets the properties associated with a key phrases detection job.
|
DescribePiiEntitiesDetectionJobResult |
describePiiEntitiesDetectionJob(DescribePiiEntitiesDetectionJobRequest describePiiEntitiesDetectionJobRequest)
Gets the properties associated with a PII entities detection job.
|
DescribeSentimentDetectionJobResult |
describeSentimentDetectionJob(DescribeSentimentDetectionJobRequest describeSentimentDetectionJobRequest)
Gets the properties associated with a sentiment detection job.
|
DescribeTopicsDetectionJobResult |
describeTopicsDetectionJob(DescribeTopicsDetectionJobRequest describeTopicsDetectionJobRequest)
Gets the properties associated with a topic detection job.
|
DetectDominantLanguageResult |
detectDominantLanguage(DetectDominantLanguageRequest detectDominantLanguageRequest)
Determines the dominant language of the input text.
|
DetectEntitiesResult |
detectEntities(DetectEntitiesRequest detectEntitiesRequest)
Inspects text for named entities, and returns information about them.
|
DetectKeyPhrasesResult |
detectKeyPhrases(DetectKeyPhrasesRequest detectKeyPhrasesRequest)
Detects the key noun phrases found in the text.
|
DetectPiiEntitiesResult |
detectPiiEntities(DetectPiiEntitiesRequest detectPiiEntitiesRequest)
Inspects the input text for entities that contain personally identifiable
information (PII) and returns information about them.
|
DetectSentimentResult |
detectSentiment(DetectSentimentRequest detectSentimentRequest)
Inspects text and returns an inference of the prevailing sentiment (
POSITIVE , NEUTRAL , MIXED , or
NEGATIVE ). |
DetectSyntaxResult |
detectSyntax(DetectSyntaxRequest detectSyntaxRequest)
Inspects text for syntax and the part of speech of words in the document.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Deprecated.
ResponseMetadata cache can hold up to 50 requests and
responses in memory and will cause memory issue. This method
now always returns null.
|
ListDocumentClassificationJobsResult |
listDocumentClassificationJobs(ListDocumentClassificationJobsRequest listDocumentClassificationJobsRequest)
Gets a list of the documentation classification jobs that you have
submitted.
|
ListDocumentClassifiersResult |
listDocumentClassifiers(ListDocumentClassifiersRequest listDocumentClassifiersRequest)
Gets a list of the document classifiers that you have created.
|
ListDominantLanguageDetectionJobsResult |
listDominantLanguageDetectionJobs(ListDominantLanguageDetectionJobsRequest listDominantLanguageDetectionJobsRequest)
Gets a list of the dominant language detection jobs that you have
submitted.
|
ListEndpointsResult |
listEndpoints(ListEndpointsRequest listEndpointsRequest)
Gets a list of all existing endpoints that you've created.
|
ListEntitiesDetectionJobsResult |
listEntitiesDetectionJobs(ListEntitiesDetectionJobsRequest listEntitiesDetectionJobsRequest)
Gets a list of the entity detection jobs that you have submitted.
|
ListEntityRecognizersResult |
listEntityRecognizers(ListEntityRecognizersRequest listEntityRecognizersRequest)
Gets a list of the properties of all entity recognizers that you created,
including recognizers currently in training.
|
ListEventsDetectionJobsResult |
listEventsDetectionJobs(ListEventsDetectionJobsRequest listEventsDetectionJobsRequest)
Gets a list of the events detection jobs that you have submitted.
|
ListKeyPhrasesDetectionJobsResult |
listKeyPhrasesDetectionJobs(ListKeyPhrasesDetectionJobsRequest listKeyPhrasesDetectionJobsRequest)
Get a list of key phrase detection jobs that you have submitted.
|
ListPiiEntitiesDetectionJobsResult |
listPiiEntitiesDetectionJobs(ListPiiEntitiesDetectionJobsRequest listPiiEntitiesDetectionJobsRequest)
Gets a list of the PII entity detection jobs that you have submitted.
|
ListSentimentDetectionJobsResult |
listSentimentDetectionJobs(ListSentimentDetectionJobsRequest listSentimentDetectionJobsRequest)
Gets a list of sentiment detection jobs that you have submitted.
|
ListTagsForResourceResult |
listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Lists all tags associated with a given Amazon Comprehend resource.
|
ListTopicsDetectionJobsResult |
listTopicsDetectionJobs(ListTopicsDetectionJobsRequest listTopicsDetectionJobsRequest)
Gets a list of the topic detection jobs that you have submitted.
|
StartDocumentClassificationJobResult |
startDocumentClassificationJob(StartDocumentClassificationJobRequest startDocumentClassificationJobRequest)
Starts an asynchronous document classification job.
|
StartDominantLanguageDetectionJobResult |
startDominantLanguageDetectionJob(StartDominantLanguageDetectionJobRequest startDominantLanguageDetectionJobRequest)
Starts an asynchronous dominant language detection job for a collection
of documents.
|
StartEntitiesDetectionJobResult |
startEntitiesDetectionJob(StartEntitiesDetectionJobRequest startEntitiesDetectionJobRequest)
Starts an asynchronous entity detection job for a collection of
documents.
|
StartEventsDetectionJobResult |
startEventsDetectionJob(StartEventsDetectionJobRequest startEventsDetectionJobRequest)
Starts an asynchronous event detection job for a collection of documents.
|
StartKeyPhrasesDetectionJobResult |
startKeyPhrasesDetectionJob(StartKeyPhrasesDetectionJobRequest startKeyPhrasesDetectionJobRequest)
Starts an asynchronous key phrase detection job for a collection of
documents.
|
StartPiiEntitiesDetectionJobResult |
startPiiEntitiesDetectionJob(StartPiiEntitiesDetectionJobRequest startPiiEntitiesDetectionJobRequest)
Starts an asynchronous PII entity detection job for a collection of
documents.
|
StartSentimentDetectionJobResult |
startSentimentDetectionJob(StartSentimentDetectionJobRequest startSentimentDetectionJobRequest)
Starts an asynchronous sentiment detection job for a collection of
documents.
|
StartTopicsDetectionJobResult |
startTopicsDetectionJob(StartTopicsDetectionJobRequest startTopicsDetectionJobRequest)
Starts an asynchronous topic detection job.
|
StopDominantLanguageDetectionJobResult |
stopDominantLanguageDetectionJob(StopDominantLanguageDetectionJobRequest stopDominantLanguageDetectionJobRequest)
Stops a dominant language detection job in progress.
|
StopEntitiesDetectionJobResult |
stopEntitiesDetectionJob(StopEntitiesDetectionJobRequest stopEntitiesDetectionJobRequest)
Stops an entities detection job in progress.
|
StopEventsDetectionJobResult |
stopEventsDetectionJob(StopEventsDetectionJobRequest stopEventsDetectionJobRequest)
Stops an events detection job in progress.
|
StopKeyPhrasesDetectionJobResult |
stopKeyPhrasesDetectionJob(StopKeyPhrasesDetectionJobRequest stopKeyPhrasesDetectionJobRequest)
Stops a key phrases detection job in progress.
|
StopPiiEntitiesDetectionJobResult |
stopPiiEntitiesDetectionJob(StopPiiEntitiesDetectionJobRequest stopPiiEntitiesDetectionJobRequest)
Stops a PII entities detection job in progress.
|
StopSentimentDetectionJobResult |
stopSentimentDetectionJob(StopSentimentDetectionJobRequest stopSentimentDetectionJobRequest)
Stops a sentiment detection job in progress.
|
StopTrainingDocumentClassifierResult |
stopTrainingDocumentClassifier(StopTrainingDocumentClassifierRequest stopTrainingDocumentClassifierRequest)
Stops a document classifier training job while in progress.
|
StopTrainingEntityRecognizerResult |
stopTrainingEntityRecognizer(StopTrainingEntityRecognizerRequest stopTrainingEntityRecognizerRequest)
Stops an entity recognizer training job while in progress.
|
TagResourceResult |
tagResource(TagResourceRequest tagResourceRequest)
Associates a specific tag with an Amazon Comprehend resource.
|
UntagResourceResult |
untagResource(UntagResourceRequest untagResourceRequest)
Removes a specific tag associated with an Amazon Comprehend resource.
|
UpdateEndpointResult |
updateEndpoint(UpdateEndpointRequest updateEndpointRequest)
Updates information about the specified endpoint.
|
addRequestHandler, addRequestHandler, getEndpoint, getEndpointPrefix, getRegions, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerRegionOverride, getTimeOffset, removeRequestHandler, removeRequestHandler, setConfiguration, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, shutdown, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setEndpoint, setRegion, shutdown
@Deprecated public AmazonComprehendClient()
All service calls made using this new client object are blocking, and will not return until the service call completes.
DefaultAWSCredentialsProviderChain
@Deprecated public AmazonComprehendClient(ClientConfiguration clientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
clientConfiguration
- The client configuration options controlling
how this client connects to AmazonComprehend (ex: proxy
settings, retry counts, etc.).DefaultAWSCredentialsProviderChain
public AmazonComprehendClient(AWSCredentials awsCredentials)
The client requests are authenticated using the AWSCredentials
provided in this constructor. Static AWSCredentials can be passed for
quick testing. However, it is strongly recommended to use Amazon Cognito
vended temporary credentials for use in production. This can be achieved
by using AWSMobileClient
. Please see
https://aws-amplify.github.io/docs/android/authentication for
instructions on how to enable AWSMobileClient
.
AWSMobileClient.getInstance().initialize(getApplicationContext(), new Callback<UserStateDetails>() { @Override public void onResult(final UserStateDetails details) { AmazonComprehendClient client = new AmazonComprehendClient(AWSMobileClient.getInstance()); } @Override public void onError(final Exception e) { e.printStackTrace(); } });
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentials
- The AWS credentials (access key ID and secret key)
to use when authenticating with AWS services.public AmazonComprehendClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration)
The client requests are authenticated using the AWSCredentials
provided in this constructor. Static AWSCredentials can be passed for
quick testing. However, it is strongly recommended to use Amazon Cognito
vended temporary credentials for use in production. This can be achieved
by using AWSMobileClient
. Please see
https://aws-amplify.github.io/docs/android/authentication for
instructions on how to enable AWSMobileClient
.
AWSMobileClient.getInstance().initialize(getApplicationContext(), new Callback<UserStateDetails>() { @Override public void onResult(final UserStateDetails details) { AmazonComprehendClient client = new AmazonComprehendClient(AWSMobileClient.getInstance()); } @Override public void onError(final Exception e) { e.printStackTrace(); } });
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentials
- The AWS credentials (access key ID and secret key)
to use when authenticating with AWS services.clientConfiguration
- The client configuration options controlling
how this client connects to AmazonComprehend (ex: proxy
settings, retry counts, etc.).public AmazonComprehendClient(AWSCredentialsProvider awsCredentialsProvider)
The client requests are authenticated using the AWSCredentials
provided by the AWSCredentialsProvider
. Static AWSCredentials can
be passed for quick testing. However, it is strongly recommended to use
Amazon Cognito vended temporary credentials for use in production. This
can be achieved by using AWSMobileClient
. Please see
https://aws-amplify.github.io/docs/android/authentication for
instructions on how to enable AWSMobileClient
.
AWSMobileClient.getInstance().initialize(getApplicationContext(), new Callback<UserStateDetails>() { @Override public void onResult(final UserStateDetails details) { AmazonComprehendClient client = new AmazonComprehendClient(AWSMobileClient.getInstance()); } @Override public void onError(final Exception e) { e.printStackTrace(); } });
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider
- The AWS credentials provider which will
provide credentials to authenticate requests with AWS
services.public AmazonComprehendClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
The client requests are authenticated using the AWSCredentials
provided by the AWSCredentialsProvider
. Static AWSCredentials can
be passed for quick testing. However, it is strongly recommended to use
Amazon Cognito vended temporary credentials for use in production. This
can be achieved by using AWSMobileClient
. Please see
https://aws-amplify.github.io/docs/android/authentication for
instructions on how to enable AWSMobileClient
.
AWSMobileClient.getInstance().initialize(getApplicationContext(), new Callback<UserStateDetails>() { @Override public void onResult(final UserStateDetails details) { AmazonComprehendClient client = new AmazonComprehendClient(AWSMobileClient.getInstance()); } @Override public void onError(final Exception e) { e.printStackTrace(); } });
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider
- The AWS credentials provider which will
provide credentials to authenticate requests with AWS
services.clientConfiguration
- The client configuration options controlling
how this client connects to AmazonComprehend (ex: proxy
settings, retry counts, etc.).@Deprecated public AmazonComprehendClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, com.amazonaws.metrics.RequestMetricCollector requestMetricCollector)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider
- The AWS credentials provider which will
provide credentials to authenticate requests with AWS
services.clientConfiguration
- The client configuration options controlling
how this client connects to AmazonComprehend (ex: proxy
settings, retry counts, etc.).requestMetricCollector
- optional request metric collectorpublic AmazonComprehendClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, HttpClient httpClient)
The client requests are authenticated using the AWSCredentials
provided by the AWSCredentialsProvider
. Static AWSCredentials can
be passed for quick testing. However, it is strongly recommended to use
Amazon Cognito vended temporary credentials for use in production. This
can be achieved by using AWSMobileClient
. Please see
https://aws-amplify.github.io/docs/android/authentication for
instructions on how to enable AWSMobileClient
.
AWSMobileClient.getInstance().initialize(getApplicationContext(), new Callback<UserStateDetails>() { @Override public void onResult(final UserStateDetails details) { AmazonComprehendClient client = new AmazonComprehendClient(AWSMobileClient.getInstance()); } @Override public void onError(final Exception e) { e.printStackTrace(); } });
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider
- The AWS credentials provider which will
provide credentials to authenticate requests with AWS
services.clientConfiguration
- The client configuration options controlling
how this client connects to AmazonComprehend (ex: proxy
settings, retry counts, etc.).httpClient
- A http clientpublic BatchDetectDominantLanguageResult batchDetectDominantLanguage(BatchDetectDominantLanguageRequest batchDetectDominantLanguageRequest) throws AmazonServiceException, AmazonClientException
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 AmazonComprehend
batchDetectDominantLanguageRequest
- InvalidRequestException
TextSizeLimitExceededException
BatchSizeLimitExceededException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public BatchDetectEntitiesResult batchDetectEntities(BatchDetectEntitiesRequest batchDetectEntitiesRequest) throws AmazonServiceException, AmazonClientException
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 AmazonComprehend
batchDetectEntitiesRequest
- InvalidRequestException
TextSizeLimitExceededException
UnsupportedLanguageException
BatchSizeLimitExceededException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public BatchDetectKeyPhrasesResult batchDetectKeyPhrases(BatchDetectKeyPhrasesRequest batchDetectKeyPhrasesRequest) throws AmazonServiceException, AmazonClientException
Detects the key noun phrases found in a batch of documents.
batchDetectKeyPhrases
in interface AmazonComprehend
batchDetectKeyPhrasesRequest
- InvalidRequestException
TextSizeLimitExceededException
UnsupportedLanguageException
BatchSizeLimitExceededException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public BatchDetectSentimentResult batchDetectSentiment(BatchDetectSentimentRequest batchDetectSentimentRequest) throws AmazonServiceException, AmazonClientException
Inspects a batch of documents and returns an inference of the prevailing
sentiment, POSITIVE
, NEUTRAL
,
MIXED
, or NEGATIVE
, in each one.
batchDetectSentiment
in interface AmazonComprehend
batchDetectSentimentRequest
- InvalidRequestException
TextSizeLimitExceededException
UnsupportedLanguageException
BatchSizeLimitExceededException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public BatchDetectSyntaxResult batchDetectSyntax(BatchDetectSyntaxRequest batchDetectSyntaxRequest) throws AmazonServiceException, AmazonClientException
Inspects the text of a batch of documents for the syntax and part of speech of the words in the document and returns information about them. For more information, see how-syntax.
batchDetectSyntax
in interface AmazonComprehend
batchDetectSyntaxRequest
- InvalidRequestException
TextSizeLimitExceededException
UnsupportedLanguageException
BatchSizeLimitExceededException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public ClassifyDocumentResult classifyDocument(ClassifyDocumentRequest classifyDocumentRequest) throws AmazonServiceException, AmazonClientException
Creates a new document classification request to analyze a single document in real-time, using a previously created and trained custom model and an endpoint.
classifyDocument
in interface AmazonComprehend
classifyDocumentRequest
- InvalidRequestException
ResourceUnavailableException
TextSizeLimitExceededException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public CreateDocumentClassifierResult createDocumentClassifier(CreateDocumentClassifierRequest createDocumentClassifierRequest) throws AmazonServiceException, AmazonClientException
Creates a new document classifier that you can use to categorize documents. To create a classifier, you provide a set of training documents that labeled with the categories that you want to use. After the classifier is trained you can use it to categorize a set of labeled documents into the categories. For more information, see how-document-classification.
createDocumentClassifier
in interface AmazonComprehend
createDocumentClassifierRequest
- InvalidRequestException
ResourceInUseException
TooManyTagsException
TooManyRequestsException
ResourceLimitExceededException
UnsupportedLanguageException
KmsKeyValidationException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public CreateEndpointResult createEndpoint(CreateEndpointRequest createEndpointRequest) throws AmazonServiceException, AmazonClientException
Creates a model-specific endpoint for synchronous inference for a previously trained custom model
createEndpoint
in interface AmazonComprehend
createEndpointRequest
- InvalidRequestException
ResourceInUseException
ResourceLimitExceededException
ResourceNotFoundException
ResourceUnavailableException
TooManyRequestsException
TooManyTagsException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public CreateEntityRecognizerResult createEntityRecognizer(CreateEntityRecognizerRequest createEntityRecognizerRequest) throws AmazonServiceException, AmazonClientException
Creates an entity recognizer using submitted files. After your
CreateEntityRecognizer
request is submitted, you can check
job status using the API.
createEntityRecognizer
in interface AmazonComprehend
createEntityRecognizerRequest
- InvalidRequestException
ResourceInUseException
TooManyTagsException
TooManyRequestsException
ResourceLimitExceededException
UnsupportedLanguageException
KmsKeyValidationException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public DeleteDocumentClassifierResult deleteDocumentClassifier(DeleteDocumentClassifierRequest deleteDocumentClassifierRequest) throws AmazonServiceException, AmazonClientException
Deletes a previously created document classifier
Only those classifiers that are in terminated states (IN_ERROR, TRAINED)
will be deleted. If an active inference job is using the model, a
ResourceInUseException
will be returned.
This is an asynchronous action that puts the classifier into a DELETING state, and it is then removed by a background job. Once removed, the classifier disappears from your account and is no longer available for use.
deleteDocumentClassifier
in interface AmazonComprehend
deleteDocumentClassifierRequest
- InvalidRequestException
TooManyRequestsException
ResourceNotFoundException
ResourceUnavailableException
ResourceInUseException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public DeleteEndpointResult deleteEndpoint(DeleteEndpointRequest deleteEndpointRequest) throws AmazonServiceException, AmazonClientException
Deletes a model-specific endpoint for a previously-trained custom model. All endpoints must be deleted in order for the model to be deleted.
deleteEndpoint
in interface AmazonComprehend
deleteEndpointRequest
- InvalidRequestException
ResourceInUseException
ResourceNotFoundException
TooManyRequestsException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public DeleteEntityRecognizerResult deleteEntityRecognizer(DeleteEntityRecognizerRequest deleteEntityRecognizerRequest) throws AmazonServiceException, AmazonClientException
Deletes an entity recognizer.
Only those recognizers that are in terminated states (IN_ERROR, TRAINED)
will be deleted. If an active inference job is using the model, a
ResourceInUseException
will be returned.
This is an asynchronous action that puts the recognizer into a DELETING state, and it is then removed by a background job. Once removed, the recognizer disappears from your account and is no longer available for use.
deleteEntityRecognizer
in interface AmazonComprehend
deleteEntityRecognizerRequest
- InvalidRequestException
TooManyRequestsException
ResourceNotFoundException
ResourceUnavailableException
ResourceInUseException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public DescribeDocumentClassificationJobResult describeDocumentClassificationJob(DescribeDocumentClassificationJobRequest describeDocumentClassificationJobRequest) throws AmazonServiceException, AmazonClientException
Gets the properties associated with a document classification job. Use this operation to get the status of a classification job.
describeDocumentClassificationJob
in interface AmazonComprehend
describeDocumentClassificationJobRequest
- InvalidRequestException
TooManyRequestsException
JobNotFoundException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public DescribeDocumentClassifierResult describeDocumentClassifier(DescribeDocumentClassifierRequest describeDocumentClassifierRequest) throws AmazonServiceException, AmazonClientException
Gets the properties associated with a document classifier.
describeDocumentClassifier
in interface AmazonComprehend
describeDocumentClassifierRequest
- InvalidRequestException
TooManyRequestsException
ResourceNotFoundException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public DescribeDominantLanguageDetectionJobResult describeDominantLanguageDetectionJob(DescribeDominantLanguageDetectionJobRequest describeDominantLanguageDetectionJobRequest) throws AmazonServiceException, AmazonClientException
Gets the properties associated with a dominant language detection job. Use this operation to get the status of a detection job.
describeDominantLanguageDetectionJob
in interface AmazonComprehend
describeDominantLanguageDetectionJobRequest
- InvalidRequestException
JobNotFoundException
TooManyRequestsException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public DescribeEndpointResult describeEndpoint(DescribeEndpointRequest describeEndpointRequest) throws AmazonServiceException, AmazonClientException
Gets the properties associated with a specific endpoint. Use this operation to get the status of an endpoint.
describeEndpoint
in interface AmazonComprehend
describeEndpointRequest
- InvalidRequestException
TooManyRequestsException
ResourceNotFoundException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public DescribeEntitiesDetectionJobResult describeEntitiesDetectionJob(DescribeEntitiesDetectionJobRequest describeEntitiesDetectionJobRequest) throws AmazonServiceException, AmazonClientException
Gets the properties associated with an entities detection job. Use this operation to get the status of a detection job.
describeEntitiesDetectionJob
in interface AmazonComprehend
describeEntitiesDetectionJobRequest
- InvalidRequestException
JobNotFoundException
TooManyRequestsException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public DescribeEntityRecognizerResult describeEntityRecognizer(DescribeEntityRecognizerRequest describeEntityRecognizerRequest) throws AmazonServiceException, AmazonClientException
Provides details about an entity recognizer including status, S3 buckets containing training data, recognizer metadata, metrics, and so on.
describeEntityRecognizer
in interface AmazonComprehend
describeEntityRecognizerRequest
- InvalidRequestException
TooManyRequestsException
ResourceNotFoundException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public DescribeEventsDetectionJobResult describeEventsDetectionJob(DescribeEventsDetectionJobRequest describeEventsDetectionJobRequest) throws AmazonServiceException, AmazonClientException
Gets the status and details of an events detection job.
describeEventsDetectionJob
in interface AmazonComprehend
describeEventsDetectionJobRequest
- InvalidRequestException
JobNotFoundException
TooManyRequestsException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public DescribeKeyPhrasesDetectionJobResult describeKeyPhrasesDetectionJob(DescribeKeyPhrasesDetectionJobRequest describeKeyPhrasesDetectionJobRequest) throws AmazonServiceException, AmazonClientException
Gets the properties associated with a key phrases detection job. Use this operation to get the status of a detection job.
describeKeyPhrasesDetectionJob
in interface AmazonComprehend
describeKeyPhrasesDetectionJobRequest
- InvalidRequestException
JobNotFoundException
TooManyRequestsException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public DescribePiiEntitiesDetectionJobResult describePiiEntitiesDetectionJob(DescribePiiEntitiesDetectionJobRequest describePiiEntitiesDetectionJobRequest) throws AmazonServiceException, AmazonClientException
Gets the properties associated with a PII entities detection job. For example, you can use this operation to get the job status.
describePiiEntitiesDetectionJob
in interface AmazonComprehend
describePiiEntitiesDetectionJobRequest
- InvalidRequestException
JobNotFoundException
TooManyRequestsException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public DescribeSentimentDetectionJobResult describeSentimentDetectionJob(DescribeSentimentDetectionJobRequest describeSentimentDetectionJobRequest) throws AmazonServiceException, AmazonClientException
Gets the properties associated with a sentiment detection job. Use this operation to get the status of a detection job.
describeSentimentDetectionJob
in interface AmazonComprehend
describeSentimentDetectionJobRequest
- InvalidRequestException
JobNotFoundException
TooManyRequestsException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public DescribeTopicsDetectionJobResult describeTopicsDetectionJob(DescribeTopicsDetectionJobRequest describeTopicsDetectionJobRequest) throws AmazonServiceException, AmazonClientException
Gets the properties associated with a topic detection job. Use this operation to get the status of a detection job.
describeTopicsDetectionJob
in interface AmazonComprehend
describeTopicsDetectionJobRequest
- InvalidRequestException
JobNotFoundException
TooManyRequestsException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public DetectDominantLanguageResult detectDominantLanguage(DetectDominantLanguageRequest detectDominantLanguageRequest) throws AmazonServiceException, AmazonClientException
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 AmazonComprehend
detectDominantLanguageRequest
- InvalidRequestException
TextSizeLimitExceededException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public DetectEntitiesResult detectEntities(DetectEntitiesRequest detectEntitiesRequest) throws AmazonServiceException, AmazonClientException
Inspects text for named entities, and returns information about them. For more information, about named entities, see how-entities.
detectEntities
in interface AmazonComprehend
detectEntitiesRequest
- InvalidRequestException
ResourceUnavailableException
TextSizeLimitExceededException
UnsupportedLanguageException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public DetectKeyPhrasesResult detectKeyPhrases(DetectKeyPhrasesRequest detectKeyPhrasesRequest) throws AmazonServiceException, AmazonClientException
Detects the key noun phrases found in the text.
detectKeyPhrases
in interface AmazonComprehend
detectKeyPhrasesRequest
- InvalidRequestException
TextSizeLimitExceededException
UnsupportedLanguageException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public DetectPiiEntitiesResult detectPiiEntities(DetectPiiEntitiesRequest detectPiiEntitiesRequest) throws AmazonServiceException, AmazonClientException
Inspects the input text for entities that contain personally identifiable information (PII) and returns information about them.
detectPiiEntities
in interface AmazonComprehend
detectPiiEntitiesRequest
- InvalidRequestException
TextSizeLimitExceededException
UnsupportedLanguageException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public DetectSentimentResult detectSentiment(DetectSentimentRequest detectSentimentRequest) throws AmazonServiceException, AmazonClientException
Inspects text and returns an inference of the prevailing sentiment (
POSITIVE
, NEUTRAL
, MIXED
, or
NEGATIVE
).
detectSentiment
in interface AmazonComprehend
detectSentimentRequest
- InvalidRequestException
TextSizeLimitExceededException
UnsupportedLanguageException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public DetectSyntaxResult detectSyntax(DetectSyntaxRequest detectSyntaxRequest) throws AmazonServiceException, AmazonClientException
Inspects text for syntax and the part of speech of words in the document. For more information, how-syntax.
detectSyntax
in interface AmazonComprehend
detectSyntaxRequest
- InvalidRequestException
TextSizeLimitExceededException
UnsupportedLanguageException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public ListDocumentClassificationJobsResult listDocumentClassificationJobs(ListDocumentClassificationJobsRequest listDocumentClassificationJobsRequest) throws AmazonServiceException, AmazonClientException
Gets a list of the documentation classification jobs that you have submitted.
listDocumentClassificationJobs
in interface AmazonComprehend
listDocumentClassificationJobsRequest
- InvalidRequestException
TooManyRequestsException
InvalidFilterException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public ListDocumentClassifiersResult listDocumentClassifiers(ListDocumentClassifiersRequest listDocumentClassifiersRequest) throws AmazonServiceException, AmazonClientException
Gets a list of the document classifiers that you have created.
listDocumentClassifiers
in interface AmazonComprehend
listDocumentClassifiersRequest
- InvalidRequestException
TooManyRequestsException
InvalidFilterException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public ListDominantLanguageDetectionJobsResult listDominantLanguageDetectionJobs(ListDominantLanguageDetectionJobsRequest listDominantLanguageDetectionJobsRequest) throws AmazonServiceException, AmazonClientException
Gets a list of the dominant language detection jobs that you have submitted.
listDominantLanguageDetectionJobs
in interface AmazonComprehend
listDominantLanguageDetectionJobsRequest
- InvalidRequestException
TooManyRequestsException
InvalidFilterException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public ListEndpointsResult listEndpoints(ListEndpointsRequest listEndpointsRequest) throws AmazonServiceException, AmazonClientException
Gets a list of all existing endpoints that you've created.
listEndpoints
in interface AmazonComprehend
listEndpointsRequest
- InvalidRequestException
TooManyRequestsException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public ListEntitiesDetectionJobsResult listEntitiesDetectionJobs(ListEntitiesDetectionJobsRequest listEntitiesDetectionJobsRequest) throws AmazonServiceException, AmazonClientException
Gets a list of the entity detection jobs that you have submitted.
listEntitiesDetectionJobs
in interface AmazonComprehend
listEntitiesDetectionJobsRequest
- InvalidRequestException
TooManyRequestsException
InvalidFilterException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public ListEntityRecognizersResult listEntityRecognizers(ListEntityRecognizersRequest listEntityRecognizersRequest) throws AmazonServiceException, AmazonClientException
Gets a list of the properties of all entity recognizers that you created, including recognizers currently in training. Allows you to filter the list of recognizers based on criteria such as status and submission time. This call returns up to 500 entity recognizers in the list, with a default number of 100 recognizers in the list.
The results of this list are not in any particular order. Please get the list and sort locally if needed.
listEntityRecognizers
in interface AmazonComprehend
listEntityRecognizersRequest
- InvalidRequestException
TooManyRequestsException
InvalidFilterException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public ListEventsDetectionJobsResult listEventsDetectionJobs(ListEventsDetectionJobsRequest listEventsDetectionJobsRequest) throws AmazonServiceException, AmazonClientException
Gets a list of the events detection jobs that you have submitted.
listEventsDetectionJobs
in interface AmazonComprehend
listEventsDetectionJobsRequest
- InvalidRequestException
TooManyRequestsException
InvalidFilterException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public ListKeyPhrasesDetectionJobsResult listKeyPhrasesDetectionJobs(ListKeyPhrasesDetectionJobsRequest listKeyPhrasesDetectionJobsRequest) throws AmazonServiceException, AmazonClientException
Get a list of key phrase detection jobs that you have submitted.
listKeyPhrasesDetectionJobs
in interface AmazonComprehend
listKeyPhrasesDetectionJobsRequest
- InvalidRequestException
TooManyRequestsException
InvalidFilterException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public ListPiiEntitiesDetectionJobsResult listPiiEntitiesDetectionJobs(ListPiiEntitiesDetectionJobsRequest listPiiEntitiesDetectionJobsRequest) throws AmazonServiceException, AmazonClientException
Gets a list of the PII entity detection jobs that you have submitted.
listPiiEntitiesDetectionJobs
in interface AmazonComprehend
listPiiEntitiesDetectionJobsRequest
- InvalidRequestException
TooManyRequestsException
InvalidFilterException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public ListSentimentDetectionJobsResult listSentimentDetectionJobs(ListSentimentDetectionJobsRequest listSentimentDetectionJobsRequest) throws AmazonServiceException, AmazonClientException
Gets a list of sentiment detection jobs that you have submitted.
listSentimentDetectionJobs
in interface AmazonComprehend
listSentimentDetectionJobsRequest
- InvalidRequestException
TooManyRequestsException
InvalidFilterException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws AmazonServiceException, AmazonClientException
Lists all tags associated with a given Amazon Comprehend resource.
listTagsForResource
in interface AmazonComprehend
listTagsForResourceRequest
- InvalidRequestException
ResourceNotFoundException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public ListTopicsDetectionJobsResult listTopicsDetectionJobs(ListTopicsDetectionJobsRequest listTopicsDetectionJobsRequest) throws AmazonServiceException, AmazonClientException
Gets a list of the topic detection jobs that you have submitted.
listTopicsDetectionJobs
in interface AmazonComprehend
listTopicsDetectionJobsRequest
- InvalidRequestException
TooManyRequestsException
InvalidFilterException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public StartDocumentClassificationJobResult startDocumentClassificationJob(StartDocumentClassificationJobRequest startDocumentClassificationJobRequest) throws AmazonServiceException, AmazonClientException
Starts an asynchronous document classification job. Use the operation to track the progress of the job.
startDocumentClassificationJob
in interface AmazonComprehend
startDocumentClassificationJobRequest
- InvalidRequestException
TooManyRequestsException
ResourceNotFoundException
ResourceUnavailableException
KmsKeyValidationException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public StartDominantLanguageDetectionJobResult startDominantLanguageDetectionJob(StartDominantLanguageDetectionJobRequest startDominantLanguageDetectionJobRequest) throws AmazonServiceException, AmazonClientException
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 AmazonComprehend
startDominantLanguageDetectionJobRequest
- InvalidRequestException
TooManyRequestsException
KmsKeyValidationException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public StartEntitiesDetectionJobResult startEntitiesDetectionJob(StartEntitiesDetectionJobRequest startEntitiesDetectionJobRequest) throws AmazonServiceException, AmazonClientException
Starts an asynchronous entity detection job for a collection of documents. Use the operation to track the status of a job.
This API can be used for either standard entity detection or custom
entity recognition. In order to be used for custom entity recognition,
the optional EntityRecognizerArn
must be used in order to
provide access to the recognizer being used to detect the custom entity.
startEntitiesDetectionJob
in interface AmazonComprehend
startEntitiesDetectionJobRequest
- InvalidRequestException
TooManyRequestsException
ResourceNotFoundException
ResourceUnavailableException
KmsKeyValidationException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public StartEventsDetectionJobResult startEventsDetectionJob(StartEventsDetectionJobRequest startEventsDetectionJobRequest) throws AmazonServiceException, AmazonClientException
Starts an asynchronous event detection job for a collection of documents.
startEventsDetectionJob
in interface AmazonComprehend
startEventsDetectionJobRequest
- InvalidRequestException
TooManyRequestsException
KmsKeyValidationException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public StartKeyPhrasesDetectionJobResult startKeyPhrasesDetectionJob(StartKeyPhrasesDetectionJobRequest startKeyPhrasesDetectionJobRequest) throws AmazonServiceException, AmazonClientException
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 AmazonComprehend
startKeyPhrasesDetectionJobRequest
- InvalidRequestException
TooManyRequestsException
KmsKeyValidationException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public StartPiiEntitiesDetectionJobResult startPiiEntitiesDetectionJob(StartPiiEntitiesDetectionJobRequest startPiiEntitiesDetectionJobRequest) throws AmazonServiceException, AmazonClientException
Starts an asynchronous PII entity detection job for a collection of documents.
startPiiEntitiesDetectionJob
in interface AmazonComprehend
startPiiEntitiesDetectionJobRequest
- InvalidRequestException
TooManyRequestsException
KmsKeyValidationException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public StartSentimentDetectionJobResult startSentimentDetectionJob(StartSentimentDetectionJobRequest startSentimentDetectionJobRequest) throws AmazonServiceException, AmazonClientException
Starts an asynchronous sentiment detection job for a collection of documents. use the operation to track the status of a job.
startSentimentDetectionJob
in interface AmazonComprehend
startSentimentDetectionJobRequest
- InvalidRequestException
TooManyRequestsException
KmsKeyValidationException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public StartTopicsDetectionJobResult startTopicsDetectionJob(StartTopicsDetectionJobRequest startTopicsDetectionJobRequest) throws AmazonServiceException, AmazonClientException
Starts an asynchronous topic detection job. Use the
DescribeTopicDetectionJob
operation to track the status of a
job.
startTopicsDetectionJob
in interface AmazonComprehend
startTopicsDetectionJobRequest
- InvalidRequestException
TooManyRequestsException
KmsKeyValidationException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public StopDominantLanguageDetectionJobResult stopDominantLanguageDetectionJob(StopDominantLanguageDetectionJobRequest stopDominantLanguageDetectionJobRequest) throws AmazonServiceException, AmazonClientException
Stops a dominant language detection job in progress.
If the job state is IN_PROGRESS
the job is marked for
termination and put into the STOP_REQUESTED
state. If the
job completes before it can be stopped, it is put into the
COMPLETED
state; otherwise the job is stopped and put into
the STOPPED
state.
If the job is in the COMPLETED
or FAILED
state
when you call the StopDominantLanguageDetectionJob
operation, the operation returns a 400 Internal Request Exception.
When a job is stopped, any documents already processed are written to the output location.
stopDominantLanguageDetectionJob
in interface AmazonComprehend
stopDominantLanguageDetectionJobRequest
- InvalidRequestException
JobNotFoundException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public StopEntitiesDetectionJobResult stopEntitiesDetectionJob(StopEntitiesDetectionJobRequest stopEntitiesDetectionJobRequest) throws AmazonServiceException, AmazonClientException
Stops an entities detection job in progress.
If the job state is IN_PROGRESS
the job is marked for
termination and put into the STOP_REQUESTED
state. If the
job completes before it can be stopped, it is put into the
COMPLETED
state; otherwise the job is stopped and put into
the STOPPED
state.
If the job is in the COMPLETED
or FAILED
state
when you call the StopDominantLanguageDetectionJob
operation, the operation returns a 400 Internal Request Exception.
When a job is stopped, any documents already processed are written to the output location.
stopEntitiesDetectionJob
in interface AmazonComprehend
stopEntitiesDetectionJobRequest
- InvalidRequestException
JobNotFoundException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public StopEventsDetectionJobResult stopEventsDetectionJob(StopEventsDetectionJobRequest stopEventsDetectionJobRequest) throws AmazonServiceException, AmazonClientException
Stops an events detection job in progress.
stopEventsDetectionJob
in interface AmazonComprehend
stopEventsDetectionJobRequest
- InvalidRequestException
JobNotFoundException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public StopKeyPhrasesDetectionJobResult stopKeyPhrasesDetectionJob(StopKeyPhrasesDetectionJobRequest stopKeyPhrasesDetectionJobRequest) throws AmazonServiceException, AmazonClientException
Stops a key phrases detection job in progress.
If the job state is IN_PROGRESS
the job is marked for
termination and put into the STOP_REQUESTED
state. If the
job completes before it can be stopped, it is put into the
COMPLETED
state; otherwise the job is stopped and put into
the STOPPED
state.
If the job is in the COMPLETED
or FAILED
state
when you call the StopDominantLanguageDetectionJob
operation, the operation returns a 400 Internal Request Exception.
When a job is stopped, any documents already processed are written to the output location.
stopKeyPhrasesDetectionJob
in interface AmazonComprehend
stopKeyPhrasesDetectionJobRequest
- InvalidRequestException
JobNotFoundException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public StopPiiEntitiesDetectionJobResult stopPiiEntitiesDetectionJob(StopPiiEntitiesDetectionJobRequest stopPiiEntitiesDetectionJobRequest) throws AmazonServiceException, AmazonClientException
Stops a PII entities detection job in progress.
stopPiiEntitiesDetectionJob
in interface AmazonComprehend
stopPiiEntitiesDetectionJobRequest
- InvalidRequestException
JobNotFoundException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public StopSentimentDetectionJobResult stopSentimentDetectionJob(StopSentimentDetectionJobRequest stopSentimentDetectionJobRequest) throws AmazonServiceException, AmazonClientException
Stops a sentiment detection job in progress.
If the job state is IN_PROGRESS
the job is marked for
termination and put into the STOP_REQUESTED
state. If the
job completes before it can be stopped, it is put into the
COMPLETED
state; otherwise the job is be stopped and put
into the STOPPED
state.
If the job is in the COMPLETED
or FAILED
state
when you call the StopDominantLanguageDetectionJob
operation, the operation returns a 400 Internal Request Exception.
When a job is stopped, any documents already processed are written to the output location.
stopSentimentDetectionJob
in interface AmazonComprehend
stopSentimentDetectionJobRequest
- InvalidRequestException
JobNotFoundException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public StopTrainingDocumentClassifierResult stopTrainingDocumentClassifier(StopTrainingDocumentClassifierRequest stopTrainingDocumentClassifierRequest) throws AmazonServiceException, AmazonClientException
Stops a document classifier training job while in progress.
If the training job state is TRAINING
, the job is marked for
termination and put into the STOP_REQUESTED
state. If the
training job completes before it can be stopped, it is put into the
TRAINED
; otherwise the training job is stopped and put into
the STOPPED
state and the service sends back an HTTP 200
response with an empty HTTP body.
stopTrainingDocumentClassifier
in interface AmazonComprehend
stopTrainingDocumentClassifierRequest
- InvalidRequestException
TooManyRequestsException
ResourceNotFoundException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public StopTrainingEntityRecognizerResult stopTrainingEntityRecognizer(StopTrainingEntityRecognizerRequest stopTrainingEntityRecognizerRequest) throws AmazonServiceException, AmazonClientException
Stops an entity recognizer training job while in progress.
If the training job state is TRAINING
, the job is marked for
termination and put into the STOP_REQUESTED
state. If the
training job completes before it can be stopped, it is put into the
TRAINED
; otherwise the training job is stopped and putted
into the STOPPED
state and the service sends back an HTTP
200 response with an empty HTTP body.
stopTrainingEntityRecognizer
in interface AmazonComprehend
stopTrainingEntityRecognizerRequest
- InvalidRequestException
TooManyRequestsException
ResourceNotFoundException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public TagResourceResult tagResource(TagResourceRequest tagResourceRequest) throws AmazonServiceException, AmazonClientException
Associates a specific tag with an Amazon Comprehend resource. A tag is a key-value pair that adds as a metadata to a resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a resource to indicate its use by the sales department.
tagResource
in interface AmazonComprehend
tagResourceRequest
- InvalidRequestException
ConcurrentModificationException
ResourceNotFoundException
TooManyTagsException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public UntagResourceResult untagResource(UntagResourceRequest untagResourceRequest) throws AmazonServiceException, AmazonClientException
Removes a specific tag associated with an Amazon Comprehend resource.
untagResource
in interface AmazonComprehend
untagResourceRequest
- TooManyTagKeysException
InvalidRequestException
ConcurrentModificationException
ResourceNotFoundException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.public UpdateEndpointResult updateEndpoint(UpdateEndpointRequest updateEndpointRequest) throws AmazonServiceException, AmazonClientException
Updates information about the specified endpoint.
updateEndpoint
in interface AmazonComprehend
updateEndpointRequest
- InvalidRequestException
TooManyRequestsException
ResourceInUseException
ResourceLimitExceededException
ResourceNotFoundException
ResourceUnavailableException
InternalServerException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by Amazon
Comprehend indicating either a problem with the data in the
request, or a server side issue.@Deprecated 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 AmazonComprehend
request
- The originally executed requestCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.