Skip to content

Commit 410d4d1

Browse files
author
AWS
committed
Amazon Translate Update: This release enables customers to import Multi-Directional Custom Terminology and use Multi-Directional Custom Terminology in both real-time translation and asynchronous batch translation.
1 parent 5a32e76 commit 410d4d1

File tree

2 files changed

+47
-8
lines changed

2 files changed

+47
-8
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Translate",
4+
"contributor": "",
5+
"description": "This release enables customers to import Multi-Directional Custom Terminology and use Multi-Directional Custom Terminology in both real-time translation and asynchronous batch translation."
6+
}

services/translate/src/main/resources/codegen-resources/service-2.json

Lines changed: 41 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,13 @@
407407
"documentation":"<p>The confidence that Amazon Comprehend accurately detected the source language is low. If a low confidence level is acceptable for your application, you can use the language in the exception to call Amazon Translate again. For more information, see the <a href=\"https://docs.aws.amazon.com/comprehend/latest/dg/API_DetectDominantLanguage.html\">DetectDominantLanguage</a> operation in the <i>Amazon Comprehend Developer Guide</i>. </p>",
408408
"exception":true
409409
},
410+
"Directionality":{
411+
"type":"string",
412+
"enum":[
413+
"UNI",
414+
"MULTI"
415+
]
416+
},
410417
"EncryptionKey":{
411418
"type":"structure",
412419
"required":[
@@ -468,18 +475,15 @@
468475
},
469476
"GetTerminologyRequest":{
470477
"type":"structure",
471-
"required":[
472-
"Name",
473-
"TerminologyDataFormat"
474-
],
478+
"required":["Name"],
475479
"members":{
476480
"Name":{
477481
"shape":"ResourceName",
478482
"documentation":"<p>The name of the custom terminology being retrieved.</p>"
479483
},
480484
"TerminologyDataFormat":{
481485
"shape":"TerminologyDataFormat",
482-
"documentation":"<p>The data format of the custom terminology being retrieved, either CSV or TMX.</p>"
486+
"documentation":"<p>The data format of the custom terminology being retrieved.</p> <p>If you don't specify this parameter, Amazon Translate returns a file that has the same format as the file that was imported to create the terminology. </p> <p>If you specify this parameter when you retrieve a multi-directional terminology resource, you must specify the same format as that of the input file that was imported to create it. Otherwise, Amazon Translate throws an error.</p>"
483487
}
484488
}
485489
},
@@ -493,6 +497,10 @@
493497
"TerminologyDataLocation":{
494498
"shape":"TerminologyDataLocation",
495499
"documentation":"<p>The data location of the custom terminology being retrieved. The custom terminology file is returned in a presigned url that has a 30 minute expiration.</p>"
500+
},
501+
"AuxiliaryDataLocation":{
502+
"shape":"TerminologyDataLocation",
503+
"documentation":"<p>The Amazon S3 location of a file that provides any errors or warnings that were produced by your input file. This file was created when Amazon Translate attempted to create a terminology resource. The location is returned as a presigned URL to that has a 30 minute expiration.</p>"
496504
}
497505
}
498506
},
@@ -538,6 +546,10 @@
538546
"TerminologyProperties":{
539547
"shape":"TerminologyProperties",
540548
"documentation":"<p>The properties of the custom terminology being imported.</p>"
549+
},
550+
"AuxiliaryDataLocation":{
551+
"shape":"TerminologyDataLocation",
552+
"documentation":"<p>The Amazon S3 location of a file that provides any errors or warnings that were produced by your input file. This file was created when Amazon Translate attempted to create a terminology resource. The location is returned as a presigned URL to that has a 30 minute expiration.</p>"
541553
}
542554
}
543555
},
@@ -1060,7 +1072,11 @@
10601072
},
10611073
"Format":{
10621074
"shape":"TerminologyDataFormat",
1063-
"documentation":"<p>The data format of the custom terminology. Either CSV or TMX.</p>"
1075+
"documentation":"<p>The data format of the custom terminology.</p>"
1076+
},
1077+
"Directionality":{
1078+
"shape":"Directionality",
1079+
"documentation":"<p>The directionality of your terminology resource indicates whether it has one source language (uni-directional) or multiple (multi-directional).</p> <dl> <dt>UNI</dt> <dd> <p>The terminology resource has one source language (for example, the first column in a CSV file), and all of its other languages are target languages. </p> </dd> <dt>MULTI</dt> <dd> <p>Any language in the terminology resource can be the source language or a target language. A single multi-directional terminology resource can be used for jobs that translate different language pairs. For example, if the terminology contains terms in English and Spanish, then it can be used for jobs that translate English to Spanish and jobs that translate Spanish to English.</p> </dd> </dl> <p>When you create a custom terminology resource without specifying the directionality, it behaves as uni-directional terminology, although this parameter will have a null value.</p>"
10641080
}
10651081
},
10661082
"documentation":"<p>The data associated with the custom terminology.</p>"
@@ -1069,7 +1085,8 @@
10691085
"type":"string",
10701086
"enum":[
10711087
"CSV",
1072-
"TMX"
1088+
"TMX",
1089+
"TSV"
10731090
]
10741091
},
10751092
"TerminologyDataLocation":{
@@ -1116,7 +1133,7 @@
11161133
},
11171134
"TargetLanguageCodes":{
11181135
"shape":"LanguageCodeStringList",
1119-
"documentation":"<p>The language codes for the target languages available with the custom terminology file. All possible target languages are returned in array.</p>"
1136+
"documentation":"<p>The language codes for the target languages available with the custom terminology resource. All possible target languages are returned in array.</p>"
11201137
},
11211138
"EncryptionKey":{
11221139
"shape":"EncryptionKey",
@@ -1137,6 +1154,22 @@
11371154
"LastUpdatedAt":{
11381155
"shape":"Timestamp",
11391156
"documentation":"<p>The time at which the custom terminology was last update, based on the timestamp.</p>"
1157+
},
1158+
"Directionality":{
1159+
"shape":"Directionality",
1160+
"documentation":"<p>The directionality of your terminology resource indicates whether it has one source language (uni-directional) or multiple (multi-directional). </p> <dl> <dt>UNI</dt> <dd> <p>The terminology resource has one source language (the first column in a CSV file), and all of its other languages are target languages.</p> </dd> <dt>MULTI</dt> <dd> <p>Any language in the terminology resource can be the source language.</p> </dd> </dl>"
1161+
},
1162+
"Message":{
1163+
"shape":"UnboundedLengthString",
1164+
"documentation":"<p>Additional information from Amazon Translate about the terminology resource.</p>"
1165+
},
1166+
"SkippedTermCount":{
1167+
"shape":"Integer",
1168+
"documentation":"<p>The number of terms in the input file that Amazon Translate skipped when you created or updated the terminology resource.</p>"
1169+
},
1170+
"Format":{
1171+
"shape":"TerminologyDataFormat",
1172+
"documentation":"<p>The format of the custom terminology input file.</p>"
11401173
}
11411174
},
11421175
"documentation":"<p>The properties of the custom terminology.</p>"

0 commit comments

Comments
 (0)