Skip to content

Commit 08dc397

Browse files
authored
feat(aws-android-sdk-comprehend): update models to latest (#2067)
1 parent 7667670 commit 08dc397

File tree

3 files changed

+57
-34
lines changed

3 files changed

+57
-34
lines changed

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

Lines changed: 44 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,10 @@ public class CreateEntityRecognizerRequest extends AmazonWebServiceRequest imple
8686

8787
/**
8888
* <p>
89-
* The language of the input documents. All documents must be in the same
90-
* language. Only English ("en") is currently supported.
89+
* You can specify any of the following languages supported by Amazon
90+
* Comprehend: English ("en"), Spanish ("es"), French ("fr"), Italian
91+
* ("it"), German ("de"), or Portuguese ("pt"). All documents must be in the
92+
* same language.
9193
* </p>
9294
* <p>
9395
* <b>Constraints:</b><br/>
@@ -498,16 +500,20 @@ public CreateEntityRecognizerRequest withClientRequestToken(String clientRequest
498500

499501
/**
500502
* <p>
501-
* The language of the input documents. All documents must be in the same
502-
* language. Only English ("en") is currently supported.
503+
* You can specify any of the following languages supported by Amazon
504+
* Comprehend: English ("en"), Spanish ("es"), French ("fr"), Italian
505+
* ("it"), German ("de"), or Portuguese ("pt"). All documents must be in the
506+
* same language.
503507
* </p>
504508
* <p>
505509
* <b>Constraints:</b><br/>
506510
* <b>Allowed Values: </b>en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
507511
*
508512
* @return <p>
509-
* The language of the input documents. All documents must be in the
510-
* same language. Only English ("en") is currently supported.
513+
* You can specify any of the following languages supported by
514+
* Amazon Comprehend: English ("en"), Spanish ("es"), French ("fr"),
515+
* Italian ("it"), German ("de"), or Portuguese ("pt"). All
516+
* documents must be in the same language.
511517
* </p>
512518
* @see LanguageCode
513519
*/
@@ -517,16 +523,20 @@ public String getLanguageCode() {
517523

518524
/**
519525
* <p>
520-
* The language of the input documents. All documents must be in the same
521-
* language. Only English ("en") is currently supported.
526+
* You can specify any of the following languages supported by Amazon
527+
* Comprehend: English ("en"), Spanish ("es"), French ("fr"), Italian
528+
* ("it"), German ("de"), or Portuguese ("pt"). All documents must be in the
529+
* same language.
522530
* </p>
523531
* <p>
524532
* <b>Constraints:</b><br/>
525533
* <b>Allowed Values: </b>en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
526534
*
527535
* @param languageCode <p>
528-
* The language of the input documents. All documents must be in
529-
* the same language. Only English ("en") is currently supported.
536+
* You can specify any of the following languages supported by
537+
* Amazon Comprehend: English ("en"), Spanish ("es"), French
538+
* ("fr"), Italian ("it"), German ("de"), or Portuguese ("pt").
539+
* All documents must be in the same language.
530540
* </p>
531541
* @see LanguageCode
532542
*/
@@ -536,8 +546,10 @@ public void setLanguageCode(String languageCode) {
536546

537547
/**
538548
* <p>
539-
* The language of the input documents. All documents must be in the same
540-
* language. Only English ("en") is currently supported.
549+
* You can specify any of the following languages supported by Amazon
550+
* Comprehend: English ("en"), Spanish ("es"), French ("fr"), Italian
551+
* ("it"), German ("de"), or Portuguese ("pt"). All documents must be in the
552+
* same language.
541553
* </p>
542554
* <p>
543555
* Returns a reference to this object so that method calls can be chained
@@ -547,8 +559,10 @@ public void setLanguageCode(String languageCode) {
547559
* <b>Allowed Values: </b>en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
548560
*
549561
* @param languageCode <p>
550-
* The language of the input documents. All documents must be in
551-
* the same language. Only English ("en") is currently supported.
562+
* You can specify any of the following languages supported by
563+
* Amazon Comprehend: English ("en"), Spanish ("es"), French
564+
* ("fr"), Italian ("it"), German ("de"), or Portuguese ("pt").
565+
* All documents must be in the same language.
552566
* </p>
553567
* @return A reference to this updated object so that method calls can be
554568
* chained together.
@@ -561,16 +575,20 @@ public CreateEntityRecognizerRequest withLanguageCode(String languageCode) {
561575

562576
/**
563577
* <p>
564-
* The language of the input documents. All documents must be in the same
565-
* language. Only English ("en") is currently supported.
578+
* You can specify any of the following languages supported by Amazon
579+
* Comprehend: English ("en"), Spanish ("es"), French ("fr"), Italian
580+
* ("it"), German ("de"), or Portuguese ("pt"). All documents must be in the
581+
* same language.
566582
* </p>
567583
* <p>
568584
* <b>Constraints:</b><br/>
569585
* <b>Allowed Values: </b>en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
570586
*
571587
* @param languageCode <p>
572-
* The language of the input documents. All documents must be in
573-
* the same language. Only English ("en") is currently supported.
588+
* You can specify any of the following languages supported by
589+
* Amazon Comprehend: English ("en"), Spanish ("es"), French
590+
* ("fr"), Italian ("it"), German ("de"), or Portuguese ("pt").
591+
* All documents must be in the same language.
574592
* </p>
575593
* @see LanguageCode
576594
*/
@@ -580,8 +598,10 @@ public void setLanguageCode(LanguageCode languageCode) {
580598

581599
/**
582600
* <p>
583-
* The language of the input documents. All documents must be in the same
584-
* language. Only English ("en") is currently supported.
601+
* You can specify any of the following languages supported by Amazon
602+
* Comprehend: English ("en"), Spanish ("es"), French ("fr"), Italian
603+
* ("it"), German ("de"), or Portuguese ("pt"). All documents must be in the
604+
* same language.
585605
* </p>
586606
* <p>
587607
* Returns a reference to this object so that method calls can be chained
@@ -591,8 +611,10 @@ public void setLanguageCode(LanguageCode languageCode) {
591611
* <b>Allowed Values: </b>en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
592612
*
593613
* @param languageCode <p>
594-
* The language of the input documents. All documents must be in
595-
* the same language. Only English ("en") is currently supported.
614+
* You can specify any of the following languages supported by
615+
* Amazon Comprehend: English ("en"), Spanish ("es"), French
616+
* ("fr"), Italian ("it"), German ("de"), or Portuguese ("pt").
617+
* All documents must be in the same language.
596618
* </p>
597619
* @return A reference to this updated object so that method calls can be
598620
* chained together.

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public class EntityRecognizerInputDataConfig implements Serializable {
2626
/**
2727
* <p>
2828
* The entity types in the input data for an entity recognizer. A maximum of
29-
* 12 entity types can be used at one time to train an entity recognizer.
29+
* 25 entity types can be used at one time to train an entity recognizer.
3030
* </p>
3131
*/
3232
private java.util.List<EntityTypesListItem> entityTypes;
@@ -55,12 +55,12 @@ public class EntityRecognizerInputDataConfig implements Serializable {
5555
/**
5656
* <p>
5757
* The entity types in the input data for an entity recognizer. A maximum of
58-
* 12 entity types can be used at one time to train an entity recognizer.
58+
* 25 entity types can be used at one time to train an entity recognizer.
5959
* </p>
6060
*
6161
* @return <p>
6262
* The entity types in the input data for an entity recognizer. A
63-
* maximum of 12 entity types can be used at one time to train an
63+
* maximum of 25 entity types can be used at one time to train an
6464
* entity recognizer.
6565
* </p>
6666
*/
@@ -71,12 +71,12 @@ public java.util.List<EntityTypesListItem> getEntityTypes() {
7171
/**
7272
* <p>
7373
* The entity types in the input data for an entity recognizer. A maximum of
74-
* 12 entity types can be used at one time to train an entity recognizer.
74+
* 25 entity types can be used at one time to train an entity recognizer.
7575
* </p>
7676
*
7777
* @param entityTypes <p>
7878
* The entity types in the input data for an entity recognizer. A
79-
* maximum of 12 entity types can be used at one time to train an
79+
* maximum of 25 entity types can be used at one time to train an
8080
* entity recognizer.
8181
* </p>
8282
*/
@@ -92,15 +92,15 @@ public void setEntityTypes(java.util.Collection<EntityTypesListItem> entityTypes
9292
/**
9393
* <p>
9494
* The entity types in the input data for an entity recognizer. A maximum of
95-
* 12 entity types can be used at one time to train an entity recognizer.
95+
* 25 entity types can be used at one time to train an entity recognizer.
9696
* </p>
9797
* <p>
9898
* Returns a reference to this object so that method calls can be chained
9999
* together.
100100
*
101101
* @param entityTypes <p>
102102
* The entity types in the input data for an entity recognizer. A
103-
* maximum of 12 entity types can be used at one time to train an
103+
* maximum of 25 entity types can be used at one time to train an
104104
* entity recognizer.
105105
* </p>
106106
* @return A reference to this updated object so that method calls can be
@@ -119,15 +119,15 @@ public EntityRecognizerInputDataConfig withEntityTypes(EntityTypesListItem... en
119119
/**
120120
* <p>
121121
* The entity types in the input data for an entity recognizer. A maximum of
122-
* 12 entity types can be used at one time to train an entity recognizer.
122+
* 25 entity types can be used at one time to train an entity recognizer.
123123
* </p>
124124
* <p>
125125
* Returns a reference to this object so that method calls can be chained
126126
* together.
127127
*
128128
* @param entityTypes <p>
129129
* The entity types in the input data for an entity recognizer. A
130-
* maximum of 12 entity types can be used at one time to train an
130+
* maximum of 25 entity types can be used at one time to train an
131131
* entity recognizer.
132132
* </p>
133133
* @return A reference to this updated object so that method calls can be

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@
2121
* <p>
2222
* Amazon Comprehend can't process the language of the input text. For all
2323
* custom entity recognition APIs (such as <code>CreateEntityRecognizer</code>),
24-
* only English is accepted. For most other APIs, such as those for Custom
25-
* Classification, Amazon Comprehend accepts text in all supported languages.
26-
* For a list of supported languages, see <a>supported-languages</a>.
24+
* only English, Spanish, French, Italian, German, or Portuguese are accepted.
25+
* For most other APIs, such as those for Custom Classification, Amazon
26+
* Comprehend accepts text in all supported languages. For a list of supported
27+
* languages, see <a>supported-languages</a>.
2728
* </p>
2829
*/
2930
public class UnsupportedLanguageException extends AmazonServiceException {

0 commit comments

Comments
 (0)