Skip to content

Commit f433370

Browse files
authored
Merge branch 'MicrosoftDocs:master' into master
2 parents d179095 + cd83d85 commit f433370

File tree

4 files changed

+280
-238
lines changed

4 files changed

+280
-238
lines changed

articles/cognitive-services/Translator/document-translation/reference/start-translation.md

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manager: nitinme
88
ms.service: cognitive-services
99
ms.subservice: translator-text
1010
ms.topic: reference
11-
ms.date: 06/22/2021
11+
ms.date: 02/01/2022
1212
---
1313

1414
# Start translation
@@ -67,8 +67,8 @@ Source of the input documents.
6767
|--- |--- |--- |--- |
6868
|filter|DocumentFilter[]|False|DocumentFilter[] listed below.|
6969
|filter.prefix|string|False|A case-sensitive prefix string to filter documents in the source path for translation. For example, when using an Azure storage blob Uri, use the prefix to restrict sub folders for translation.|
70-
|filter.suffix|string|False|A case-sensitive suffix string to filter documents in the source path for translation. This is most often use for file extensions.|
71-
|language|string|False|Language code If none is specified, we will perform auto detect on the document.|
70+
|filter.suffix|string|False|A case-sensitive suffix string to filter documents in the source path for translation. It's most often use for file extensions.|
71+
|language|string|False|Language code If none is specified, we'll perform auto detect on the document.|
7272
|sourceUrl|string|True|Location of the folder / container or single file with your documents.|
7373
|storageSource|StorageSource|False|StorageSource listed below.|
7474
|storageSource.AzureBlob|string|False||
@@ -91,7 +91,7 @@ Destination for the finished translated documents.
9191
|category|string|False|Category / custom system for translation request.|
9292
|glossaries|Glossary[]|False|Glossary listed below. List of Glossary.|
9393
|glossaries.format|string|False|Format.|
94-
|glossaries.glossaryUrl|string|True (if using glossaries)|Location of the glossary. We will use the file extension to extract the formatting if the format parameter isn't supplied. If the translation language pair isn't present in the glossary, it won't be applied.|
94+
|glossaries.glossaryUrl|string|True (if using glossaries)|Location of the glossary. We'll use the file extension to extract the formatting if the format parameter isn't supplied. If the translation language pair isn't present in the glossary, it won't be applied.|
9595
|glossaries.storageSource|StorageSource|False|StorageSource listed above.|
9696
|glossaries.version|string|False|Optional Version. If not specified, default is used.|
9797
|targetUrl|string|True|Location of the folder / container with your documents.|
@@ -102,6 +102,9 @@ Destination for the finished translated documents.
102102

103103
The following are examples of batch requests.
104104

105+
> [!NOTE]
106+
> In the following examples, limited access has been granted to the contents of an Azure Storage container [using a shared access signature(SAS)](/azure/storage/common/storage-sas-overview) token.
107+
105108
**Translating all documents in a container**
106109

107110
```json
@@ -124,8 +127,6 @@ The following are examples of batch requests.
124127

125128
**Translating all documents in a container applying glossaries**
126129

127-
Ensure you have created glossary URL & SAS token for the specific blob/document (not for the container)
128-
129130
```json
130131
{
131132
"inputs": [
@@ -154,7 +155,7 @@ Ensure you have created glossary URL & SAS token for the specific blob/document
154155

155156
**Translating specific folder in a container**
156157

157-
Ensure you have specified the folder name (case sensitive) as prefix in filter – though the SAS token is still for the container.
158+
Make sure you've specified the folder name (case sensitive) as prefix in filter.
158159

159160
```json
160161
{
@@ -179,10 +180,11 @@ Ensure you have specified the folder name (case sensitive) as prefix in filter
179180

180181
**Translating specific document in a container**
181182

182-
* Ensure you have specified "storageType": "File"
183-
* Ensure you have created source URL & SAS token for the specific blob/document (not for the container)
184-
* Ensure you have specified the target filename as part of the target URL – though the SAS token is still for the container.
185-
* Sample request below shows a single document getting translated into two target languages
183+
* Specify "storageType": "File"
184+
* Create source URL & SAS token for the specific blob/document.
185+
* Specify the target filename as part of the target URL – though the SAS token is still for the container.
186+
187+
The sample request below shows a single document translated into two target languages
186188

187189
```json
188190
{
@@ -215,10 +217,10 @@ The following are the possible HTTP status codes that a request returns.
215217
|--- |--- |
216218
|202|Accepted. Successful request and the batch request are created by the service. The header Operation-Location will indicate a status url with the operation ID.HeadersOperation-Location: string|
217219
|400|Bad Request. Invalid request. Check input parameters.|
218-
|401|Unauthorized. Please check your credentials.|
220+
|401|Unauthorized. Check your credentials.|
219221
|429|Request rate is too high.|
220222
|500|Internal Server Error.|
221-
|503|Service is currently unavailable. Please try again later.|
223+
|503|Service is currently unavailable. Try again later.|
222224
|Other Status Codes|<ul><li>Too many requests</li><li>Server temporary unavailable</li></ul>|
223225

224226
## Error response
@@ -227,10 +229,10 @@ The following are the possible HTTP status codes that a request returns.
227229
|--- |--- |--- |
228230
|code|string|Enums containing high-level error codes. Possible values:<br/><ul><li>InternalServerError</li><li>InvalidArgument</li><li>InvalidRequest</li><li>RequestRateTooHigh</li><li>ResourceNotFound</li><li>ServiceUnavailable</li><li>Unauthorized</li></ul>|
229231
|message|string|Gets high-level error message.|
230-
|innerError|InnerTranslationError|New Inner Error format which conforms to Cognitive Services API Guidelines. This contains required properties ErrorCode, message and optional properties target, details(key value pair), inner error(this can be nested).|
232+
|innerError|InnerTranslationError|New Inner Error format that conforms to Cognitive Services API Guidelines. This contains required properties: ErrorCode, message and optional properties target, details(key value pair), and inner error(this can be nested).|
231233
|inner.Errorcode|string|Gets code error string.|
232234
|innerError.message|string|Gets high-level error message.|
233-
|innerError.target|string|Gets the source of the error. For example it would be "documents" or "document id" in case of invalid document.|
235+
|innerError.target|string|Gets the source of the error. For example it would be "documents" or "document ID" if the document is invalid.|
234236

235237
## Examples
236238

@@ -265,3 +267,4 @@ Follow our quickstart to learn more about using Document Translation and the cli
265267

266268
> [!div class="nextstepaction"]
267269
> [Get started with Document Translation](../get-started-with-document-translation.md)
270+

articles/data-factory/index.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ metadata:
1111
ms.collection: collection
1212
author: jonburchel
1313
ms.author: jburchel
14-
ms.date: 06/14/2021
14+
ms.date: 02/02/2022
1515
ms.custom: contperf-fy21q4
1616

1717
landingContent:

0 commit comments

Comments
 (0)