Skip to content

Commit

Permalink
feat(aws-android-sdk-comprehend): update models to latest (#3013)
Browse files Browse the repository at this point in the history
  • Loading branch information
awsmobilesdk authored Sep 27, 2022
1 parent c92c996 commit f614ee2
Show file tree
Hide file tree
Showing 49 changed files with 4,414 additions and 626 deletions.
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

0 comments on commit f614ee2

Please sign in to comment.