Skip to content

Commit f614ee2

Browse files
authored
feat(aws-android-sdk-comprehend): update models to latest (#3013)
1 parent c92c996 commit f614ee2

File tree

49 files changed

+4414
-626
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+4414
-626
lines changed

aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/AmazonComprehend.java

Lines changed: 79 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,10 @@ BatchDetectDominantLanguageResult batchDetectDominantLanguage(
120120
/**
121121
* <p>
122122
* Inspects the text of a batch of documents for named entities and returns
123-
* information about them. For more information about named entities, see
124-
* <a>how-entities</a>
123+
* information about them. For more information about named entities, see <a
124+
* href
125+
* ="https://docs.aws.amazon.com/comprehend/latest/dg/how-entities.html">
126+
* Entities</a> in the Comprehend Developer Guide.
125127
* </p>
126128
*
127129
* @param batchDetectEntitiesRequest
@@ -203,7 +205,9 @@ BatchDetectSentimentResult batchDetectSentiment(
203205
* <p>
204206
* Inspects the text of a batch of documents for the syntax and part of
205207
* speech of the words in the document and returns information about them.
206-
* For more information, see <a>how-syntax</a>.
208+
* For more information, see <a
209+
* href="https://docs.aws.amazon.com/comprehend/latest/dg/how-syntax.html"
210+
* >Syntax</a> in the Comprehend Developer Guide.
207211
* </p>
208212
*
209213
* @param batchDetectSyntaxRequest
@@ -225,6 +229,38 @@ BatchDetectSentimentResult batchDetectSentiment(
225229
BatchDetectSyntaxResult batchDetectSyntax(BatchDetectSyntaxRequest batchDetectSyntaxRequest)
226230
throws AmazonClientException, AmazonServiceException;
227231

232+
/**
233+
* <p>
234+
* Inspects a batch of documents and returns a sentiment analysis for each
235+
* entity identified in the documents.
236+
* </p>
237+
* <p>
238+
* For more information about targeted sentiment, see <a href=
239+
* "https://docs.aws.amazon.com/comprehend/latest/dg/how-targeted-sentiment.html"
240+
* >Targeted sentiment</a>.
241+
* </p>
242+
*
243+
* @param batchDetectTargetedSentimentRequest
244+
* @return batchDetectTargetedSentimentResult The response from the
245+
* BatchDetectTargetedSentiment service method, as returned by
246+
* Amazon Comprehend.
247+
* @throws InvalidRequestException
248+
* @throws TextSizeLimitExceededException
249+
* @throws UnsupportedLanguageException
250+
* @throws BatchSizeLimitExceededException
251+
* @throws InternalServerException
252+
* @throws AmazonClientException If any internal errors are encountered
253+
* inside the client while attempting to make the request or
254+
* handle the response. For example if a network connection is
255+
* not available.
256+
* @throws AmazonServiceException If an error response is returned by Amazon
257+
* Comprehend indicating either a problem with the data in the
258+
* request, or a server side issue.
259+
*/
260+
BatchDetectTargetedSentimentResult batchDetectTargetedSentiment(
261+
BatchDetectTargetedSentimentRequest batchDetectTargetedSentimentRequest)
262+
throws AmazonClientException, AmazonServiceException;
263+
228264
/**
229265
* <p>
230266
* Creates a new document classification request to analyze a single
@@ -283,8 +319,9 @@ ContainsPiiEntitiesResult containsPiiEntities(
283319
* documents. To create a classifier, you provide a set of training
284320
* documents that labeled with the categories that you want to use. After
285321
* the classifier is trained you can use it to categorize a set of labeled
286-
* documents into the categories. For more information, see
287-
* <a>how-document-classification</a>.
322+
* documents into the categories. For more information, see <a href=
323+
* "https://docs.aws.amazon.com/comprehend/latest/dg/how-document-classification.html"
324+
* >Document Classification</a> in the Comprehend Developer Guide.
288325
* </p>
289326
*
290327
* @param createDocumentClassifierRequest
@@ -867,7 +904,9 @@ DetectDominantLanguageResult detectDominantLanguage(
867904
/**
868905
* <p>
869906
* Inspects text for named entities, and returns information about them. For
870-
* more information, about named entities, see <a>how-entities</a>.
907+
* more information, about named entities, see <a href=
908+
* "https://docs.aws.amazon.com/comprehend/latest/dg/how-entities.html"
909+
* >Entities</a> in the Comprehend Developer Guide.
871910
* </p>
872911
*
873912
* @param detectEntitiesRequest
@@ -964,7 +1003,9 @@ DetectSentimentResult detectSentiment(DetectSentimentRequest detectSentimentRequ
9641003
/**
9651004
* <p>
9661005
* Inspects text for syntax and the part of speech of words in the document.
967-
* For more information, <a>how-syntax</a>.
1006+
* For more information, see <a
1007+
* href="https://docs.aws.amazon.com/comprehend/latest/dg/how-syntax.html"
1008+
* >Syntax</a> in the Comprehend Developer Guide.
9681009
* </p>
9691010
*
9701011
* @param detectSyntaxRequest
@@ -985,6 +1026,37 @@ DetectSentimentResult detectSentiment(DetectSentimentRequest detectSentimentRequ
9851026
DetectSyntaxResult detectSyntax(DetectSyntaxRequest detectSyntaxRequest)
9861027
throws AmazonClientException, AmazonServiceException;
9871028

1029+
/**
1030+
* <p>
1031+
* Inspects the input text and returns a sentiment analysis for each entity
1032+
* identified in the text.
1033+
* </p>
1034+
* <p>
1035+
* For more information about targeted sentiment, see <a href=
1036+
* "https://docs.aws.amazon.com/comprehend/latest/dg/how-targeted-sentiment.html"
1037+
* >Targeted sentiment</a>.
1038+
* </p>
1039+
*
1040+
* @param detectTargetedSentimentRequest
1041+
* @return detectTargetedSentimentResult The response from the
1042+
* DetectTargetedSentiment service method, as returned by Amazon
1043+
* Comprehend.
1044+
* @throws InvalidRequestException
1045+
* @throws TextSizeLimitExceededException
1046+
* @throws UnsupportedLanguageException
1047+
* @throws InternalServerException
1048+
* @throws AmazonClientException If any internal errors are encountered
1049+
* inside the client while attempting to make the request or
1050+
* handle the response. For example if a network connection is
1051+
* not available.
1052+
* @throws AmazonServiceException If an error response is returned by Amazon
1053+
* Comprehend indicating either a problem with the data in the
1054+
* request, or a server side issue.
1055+
*/
1056+
DetectTargetedSentimentResult detectTargetedSentiment(
1057+
DetectTargetedSentimentRequest detectTargetedSentimentRequest)
1058+
throws AmazonClientException, AmazonServiceException;
1059+
9881060
/**
9891061
* <p>
9901062
* Creates a new custom model that replicates a source custom model that you

0 commit comments

Comments
 (0)