Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

comprehend Update models to latest #3013

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,10 @@ BatchDetectDominantLanguageResult batchDetectDominantLanguage(
/**
* <p>
* Inspects the text of a batch of documents for named entities and returns
* information about them. For more information about named entities, see
* <a>how-entities</a>
* information about them. For more information about named entities, see <a
* href
* ="https://docs.aws.amazon.com/comprehend/latest/dg/how-entities.html">
* Entities</a> in the Comprehend Developer Guide.
* </p>
*
* @param batchDetectEntitiesRequest
Expand Down Expand Up @@ -203,7 +205,9 @@ BatchDetectSentimentResult batchDetectSentiment(
* <p>
* 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 <a>how-syntax</a>.
* For more information, see <a
* href="https://docs.aws.amazon.com/comprehend/latest/dg/how-syntax.html"
* >Syntax</a> in the Comprehend Developer Guide.
* </p>
*
* @param batchDetectSyntaxRequest
Expand All @@ -225,6 +229,38 @@ BatchDetectSentimentResult batchDetectSentiment(
BatchDetectSyntaxResult batchDetectSyntax(BatchDetectSyntaxRequest batchDetectSyntaxRequest)
throws AmazonClientException, AmazonServiceException;

/**
* <p>
* Inspects a batch of documents and returns a sentiment analysis for each
* entity identified in the documents.
* </p>
* <p>
* For more information about targeted sentiment, see <a href=
* "https://docs.aws.amazon.com/comprehend/latest/dg/how-targeted-sentiment.html"
* >Targeted sentiment</a>.
* </p>
*
* @param batchDetectTargetedSentimentRequest
* @return batchDetectTargetedSentimentResult The response from the
* BatchDetectTargetedSentiment service method, as returned by
* Amazon Comprehend.
* @throws InvalidRequestException
* @throws TextSizeLimitExceededException
* @throws UnsupportedLanguageException
* @throws BatchSizeLimitExceededException
* @throws InternalServerException
* @throws 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.
* @throws 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.
*/
BatchDetectTargetedSentimentResult batchDetectTargetedSentiment(
BatchDetectTargetedSentimentRequest batchDetectTargetedSentimentRequest)
throws AmazonClientException, AmazonServiceException;

/**
* <p>
* Creates a new document classification request to analyze a single
Expand Down Expand Up @@ -283,8 +319,9 @@ ContainsPiiEntitiesResult containsPiiEntities(
* 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
* <a>how-document-classification</a>.
* documents into the categories. For more information, see <a href=
* "https://docs.aws.amazon.com/comprehend/latest/dg/how-document-classification.html"
* >Document Classification</a> in the Comprehend Developer Guide.
* </p>
*
* @param createDocumentClassifierRequest
Expand Down Expand Up @@ -867,7 +904,9 @@ DetectDominantLanguageResult detectDominantLanguage(
/**
* <p>
* Inspects text for named entities, and returns information about them. For
* more information, about named entities, see <a>how-entities</a>.
* more information, about named entities, see <a href=
* "https://docs.aws.amazon.com/comprehend/latest/dg/how-entities.html"
* >Entities</a> in the Comprehend Developer Guide.
* </p>
*
* @param detectEntitiesRequest
Expand Down Expand Up @@ -964,7 +1003,9 @@ DetectSentimentResult detectSentiment(DetectSentimentRequest detectSentimentRequ
/**
* <p>
* Inspects text for syntax and the part of speech of words in the document.
* For more information, <a>how-syntax</a>.
* For more information, see <a
* href="https://docs.aws.amazon.com/comprehend/latest/dg/how-syntax.html"
* >Syntax</a> in the Comprehend Developer Guide.
* </p>
*
* @param detectSyntaxRequest
Expand All @@ -985,6 +1026,37 @@ DetectSentimentResult detectSentiment(DetectSentimentRequest detectSentimentRequ
DetectSyntaxResult detectSyntax(DetectSyntaxRequest detectSyntaxRequest)
throws AmazonClientException, AmazonServiceException;

/**
* <p>
* Inspects the input text and returns a sentiment analysis for each entity
* identified in the text.
* </p>
* <p>
* For more information about targeted sentiment, see <a href=
* "https://docs.aws.amazon.com/comprehend/latest/dg/how-targeted-sentiment.html"
* >Targeted sentiment</a>.
* </p>
*
* @param detectTargetedSentimentRequest
* @return detectTargetedSentimentResult The response from the
* DetectTargetedSentiment service method, as returned by Amazon
* Comprehend.
* @throws InvalidRequestException
* @throws TextSizeLimitExceededException
* @throws UnsupportedLanguageException
* @throws InternalServerException
* @throws 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.
* @throws 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.
*/
DetectTargetedSentimentResult detectTargetedSentiment(
DetectTargetedSentimentRequest detectTargetedSentimentRequest)
throws AmazonClientException, AmazonServiceException;

/**
* <p>
* Creates a new custom model that replicates a source custom model that you
Expand Down
Loading