Skip to content

Commit 2f89bf3

Browse files
Merge pull request #264420 from laujan/181271-dt-synchronous-asynchronous
181271 dt synchronous asynchronous
2 parents 75e883a + 904f4e1 commit 2f89bf3

33 files changed

+621
-351
lines changed

articles/ai-services/.openpublishing.redirection.ai-services-from-applied.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,17 @@
625625
"source_path_from_root": "/articles/ai-services/document-intelligence/quickstarts/includes/v3-rest-api-sdk.md",
626626
"redirect_url": "/azure/ai-services/document-intelligence/quickstarts/includes/rest-api-sdk.md",
627627
"redirect_document_id": true
628+
},
629+
{
630+
"source_path_from_root": "/articles/ai-services/translator/document-translation/quickstarts/document-translation-sdk.md",
631+
"redirect_url": "/azure/ai-services/translator/document-translation/quickstarts/asynchronous-sdk",
632+
"redirect_document_id": true
633+
},
634+
{
635+
"source_path_from_root": "/articles/ai-services/translator/document-translation/quickstarts/document-translation-rest-api.md",
636+
"redirect_url": "/azure/ai-services/translator/document-translation/quickstarts/asynchronous-rest-api",
637+
"redirect_document_id": true
628638
}
629-
639+
630640
]
631641
}

articles/ai-services/translator/custom-translator/concepts/sentence-alignment.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: During the training execution, sentences present in parallel docume
55
author: laujan
66
manager: nitinme
77
ms.service: azure-ai-translator
8-
ms.date: 07/18/2023
8+
ms.date: 02/12/2024
99
ms.author: lajanuar
1010
ms.topic: conceptual
1111
ms.custom: cogserv-non-critical-translator
@@ -22,21 +22,21 @@ able to pair as the Aligned Sentences in each of the data sets.
2222

2323
Custom Translator learns translations of sentences one sentence at a time. It reads a sentence from the source text, and then the translation of this sentence from the target text. Then it aligns words and phrases in these two sentences to each other. This process enables it to create a map of the words and phrases in one sentence to the equivalent words and phrases in the translation of the sentence. Alignment tries to ensure that the system trains on sentences that are translations of each other.
2424

25-
## Pre-aligned documents
25+
## Prealigned documents
2626

27-
If you know you have parallel documents, you may override the
28-
sentence alignment by supplying pre-aligned text files. You can extract all
27+
If you know you have parallel documents, you can override the
28+
sentence alignment by supplying prealigned text files. You can extract all
2929
sentences from both documents into text file, organized one sentence per line,
3030
and upload with an `.align` extension. The `.align` extension signals Custom
3131
Translator that it should skip sentence alignment.
3232

3333
For best results, try to make sure that you have one sentence per line in your
34-
files. Don't have newline characters within a sentence, it will cause poor
34+
files. Don't have newline characters within a sentenceit causes poor
3535
alignments.
3636

3737
## Suggested minimum number of sentences
3838

39-
For a training to succeed, the table below shows the minimum number of sentences required in each document type. This limitation is a safety net to ensure your parallel sentences contain enough unique vocabulary to successfully train a translation model. The general guideline is having more in-domain parallel sentences of human translation quality should produce higher-quality models.
39+
For a training to succeed, the following table shows the minimum number of sentences required in each document type. This limitation is a safety net to ensure your parallel sentences contain enough unique vocabulary to successfully train a translation model. The general guideline is having more in-domain parallel sentences of human translation quality should produce higher-quality models.
4040

4141
| Document type | Suggested minimum sentence count | Maximum sentence count |
4242
|------------|--------------------------------------------|--------------------------------|

articles/ai-services/translator/document-translation/document-sdk-overview.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ manager: nitinme
77
ms.service: azure-ai-translator
88
ms.custom: devx-track-python
99
ms.topic: conceptual
10-
ms.date: 07/18/2023
10+
ms.date: 02/12/2024
1111
ms.author: lajanuar
1212
recommendations: false
1313
---
@@ -170,7 +170,7 @@ result = poller.result()
170170

171171
## Help options
172172

173-
The [Microsoft Q&A](/answers/tags/132/azure-translator) and [Stack Overflow](https://stackoverflow.com/questions/tagged/microsoft-translator) forums are available for the developer community to ask and answer questions about Azure Text Translation and other services. Microsoft monitors the forums and replies to questions that the community has yet to answer.
173+
The [`Microsoft Q&A`](/answers/tags/132/azure-translator) and [Stack Overflow](https://stackoverflow.com/questions/tagged/microsoft-translator) forums are available for the developer community to ask and answer questions about Azure Text Translation and other services. Microsoft monitors the forums and replies to questions that the community has yet to answer.
174174
175175
> [!TIP]
176176
> To make sure that we see your Microsoft Q&A question, tag it with **`microsoft-translator`**.
@@ -180,4 +180,4 @@ The [Microsoft Q&A](/answers/tags/132/azure-translator) and [Stack Overflow](htt
180180
## Next steps
181181

182182
>[!div class="nextstepaction"]
183-
> [**Document Translation SDK quickstart**](quickstarts/document-translation-sdk.md) [**Document Translation v1.1 REST API reference**](reference/rest-api-guide.md)
183+
> [**Document Translation SDK quickstart**](quickstarts/asynchronous-sdk.md) [**Document Translation v1.1 REST API reference**](reference/rest-api-guide.md)

articles/ai-services/translator/document-translation/how-to-guides/create-sas-tokens.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.topic: how-to
66
manager: nitinme
77
ms.author: lajanuar
88
author: laujan
9-
ms.date: 07/18/2023
9+
ms.date: 02/12/2024
1010
---
1111

1212
# Create SAS tokens for your storage containers
@@ -25,11 +25,11 @@ In this article, you learn how to create user delegation, shared access signatur
2525
2626
At a high level, here's how SAS tokens work:
2727

28-
* Your application submits the SAS token to Azure Storage as part of a REST API request.
28+
* An application submits the SAS token to Azure Storage as part of a REST API request.
2929

30-
* If the storage service verifies that the SAS is valid, the request is authorized.
30+
* The storage service verifies that the SAS is valid. If so, the request is authorized.
3131

32-
* If the SAS token is deemed invalid, the request is declined, and the error code 403 (Forbidden) is returned.
32+
* The request is declined If the SAS token is deemed invalid. If so, error code 403 (Forbidden) is returned.
3333

3434
Azure Blob Storage offers three resource types:
3535

@@ -64,24 +64,24 @@ Go to the [Azure portal](https://portal.azure.com/#home) and navigate to your co
6464

6565
| Create SAS token for a container| Create SAS token for a specific file|
6666
|:-----:|:-----:|
67-
**Your storage account****containers****your container** |**Your storage account****containers****your container****your file** |
67+
|**Your storage account****containers****your container** |**Your storage account****containers****your container****your file** |
6868

6969
1. Right-click the container or file and select **Generate SAS** from the drop-down menu.
7070

7171
1. Select **Signing method****User delegation key**.
7272

7373
1. Define **Permissions** by checking and/or clearing the appropriate check box:
7474

75-
* Your **source** container or file must have designated **read** and **list** access.
75+
* Your **source** container or file must designate **read** and **list** access.
7676

77-
* Your **target** container or file must have designated **write** and **list** access.
77+
* Your **target** container or file must designate **write** and **list** access.
7878

7979
1. Specify the signed key **Start** and **Expiry** times.
8080

8181
* When you create a shared access signature (SAS), the default duration is 48 hours. After 48 hours, you'll need to create a new token.
8282
* Consider setting a longer duration period for the time you're using your storage account for Translator Service operations.
8383
* The value of the expiry time is determined by whether you're using an **Account key** or **User delegation key** **Signing method**:
84-
* **Account key**: There's no imposed maximum time limit; however, best practices recommended that you configure an expiration policy to limit the interval and minimize compromise. [Configure an expiration policy for shared access signatures](/azure/storage/common/sas-expiration-policy).
84+
* **Account key**: While a maximum time limit isn't imposed, best practice recommends that you configure an expiration policy to limit the interval and minimize compromise. [Configure an expiration policy for shared access signatures](/azure/storage/common/sas-expiration-policy).
8585
* **User delegation key**: The value for the expiry time is a maximum of seven days from the creation of the SAS token. The SAS is invalid after the user delegation key expires, so a SAS with an expiry time of greater than seven days will still only be valid for seven days. For more information,*see* [Use Microsoft Entra credentials to secure a SAS](/azure/storage/blobs/storage-blob-user-delegation-sas-create-cli#use-azure-ad-credentials-to-secure-a-sas).
8686

8787
1. The **Allowed IP addresses** field is optional and specifies an IP address or a range of IP addresses from which to accept requests. If the request IP address doesn't match the IP address or address range specified on the SAS token, authorization fails. The IP address or a range of IP addresses must be public IPs, not private. For more information,*see*, [**Specify an IP address or IP range**](/rest/api/storageservices/create-account-sas#specify-an-ip-address-or-ip-range).
@@ -133,8 +133,8 @@ Azure Storage Explorer is a free standalone app that enables you to easily manag
133133
* Specify the signed key **Start** and **Expiry** date and time. A short lifespan is recommended because, once generated, a SAS can't be revoked.
134134
* Select the **Time zone** for the Start and Expiry date and time (default is Local).
135135
* Define your container **Permissions** by checking and/or clearing the appropriate check box.
136-
* Your **source** container or file must have designated **read** and **list** access.
137-
* Your **target** container or file must have designated **write** and **list** access.
136+
* Your **source** container or file must designate **read** and **list** access.
137+
* Your **target** container or file must designate **write** and **list** access.
138138
* Select **key1** or **key2**.
139139
* Review and select **Create**.
140140

@@ -179,10 +179,10 @@ Here's a sample REST API request:
179179
}
180180
```
181181

182-
That's it! You've learned how to create SAS tokens to authorize how clients access your data.
182+
That's it! You just learned how to create SAS tokens to authorize how clients access your data.
183183

184184
## Next steps
185185

186186
> [!div class="nextstepaction"]
187-
> [Get Started with Document Translation](../quickstarts/document-translation-rest-api.md)
187+
> [Get Started with Document Translation](../quickstarts/asynchronous-rest-api.md)
188188
>

articles/ai-services/translator/document-translation/how-to-guides/create-use-managed-identities.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
title: Create and use managed identities for Document Translation
33
titleSuffix: Azure AI services
4-
description: Understand how to create and use managed identities in the Azure portal
4+
description: Understand how to create and use managed identities in the Azure portal.
55
author: laujan
66
manager: nitinme
77
ms.service: azure-ai-translator
88
ms.custom: build-2023
99
ms.topic: how-to
10-
ms.date: 07/18/2023
10+
ms.date: 02/12/2024
1111
ms.author: lajanuar
1212
---
1313

@@ -64,11 +64,11 @@ To get started, you need:
6464
> [!NOTE]
6565
> It may take up to 5 min for the network changes to propagate.
6666
67-
Although network access is now permitted, your Translator resource is still unable to access the data in your Storage account. You need to [create a managed identity](#managed-identity-assignments) for and [assign a specific access role](#grant-storage-account-access-for-your-translator-resource) to your Translator resource.
67+
Although network access is now permitted, your Translator resource is still unable to access the data in your Storage account. You need to [create a managed identity](#managed-identity-assignments) for and [assign a specific access role](#grant-storage-account-access-for-your-translator-resource) to your Translator resource.
6868

6969
## Managed identity assignments
7070

71-
There are two types of managed identities: **system-assigned** and **user-assigned**. Currently, Document Translation supports **system-assigned managed identity**:
71+
There are two types of managed identities: **system-assigned** and **user-assigned**. Currently, Document Translation supports **system-assigned managed identity**:
7272

7373
* A system-assigned managed identity is **enabled** directly on a service instance. It isn't enabled by default; you must go to your resource and update the identity setting.
7474

@@ -129,7 +129,7 @@ You must grant the Translator resource access to your storage account before it
129129

130130
## HTTP requests
131131

132-
* A batch Document Translation request is submitted to your Translator service endpoint via a POST request.
132+
* An asynchronous batch translation request is submitted to your Translator service endpoint via a POST request.
133133

134134
* With managed identity and `Azure RBAC`, you no longer need to include SAS URLs.
135135

@@ -246,12 +246,12 @@ For more information, _see_ [request parameters](#post-request-body).
246246
}
247247
```
248248

249-
Great! You've learned how to enable and use a system-assigned managed identity. With managed identity for Azure Resources and `Azure RBAC`, you granted Translator specific access rights to your storage resource without including SAS tokens with your HTTP requests.
249+
Great! You just learned how to enable and use a system-assigned managed identity. With managed identity for Azure Resources and `Azure RBAC`, you granted Translator specific access rights to your storage resource without including SAS tokens with your HTTP requests.
250250

251251
## Next steps
252252

253253
> [!div class="nextstepaction"]
254-
> [Quickstart: Get started with Document Translation](../quickstarts/document-translation-rest-api.md)
254+
> [Quickstart: Get started with Document Translation](../quickstarts/asynchronous-rest-api.md)
255255
256256
> [!div class="nextstepaction"]
257257
> [Tutorial: Access Azure Storage from a web app using managed identities](../../../../app-service/scenario-secure-app-access-storage.md?bc=%2fazure%2fcognitive-services%2ftranslator%2fbreadcrumb%2ftoc.json&toc=%2fazure%2fcognitive-services%2ftranslator%2ftoc.json)

0 commit comments

Comments
 (0)