Skip to content

Commit 97ef97c

Browse files
committed
uuf updates
1 parent 8aa17b7 commit 97ef97c

File tree

3 files changed

+18
-20
lines changed

3 files changed

+18
-20
lines changed

articles/ai-services/document-intelligence/quickstarts/get-started-sdks-rest-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ms.custom:
1212
- devx-track-python
1313
- ignite-2023
1414
ms.topic: quickstart
15-
ms.date: 03/25/2024
15+
ms.date: 07/19/2024
1616
ms.author: lajanuar
1717
zone_pivot_groups: programming-languages-set-formre
1818
---

articles/ai-services/document-intelligence/quickstarts/includes/java-sdk.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,6 @@ Extract text, selection marks, text styles, table structures, and bounding regio
265265

266266
```java
267267

268-
import com.azure.ai.documentintelligence;
269-
270268
import com.azure.ai.documentintelligence.models.AnalyzeDocumentRequest;
271269
import com.azure.ai.documentintelligence.models.AnalyzeResult;
272270
import com.azure.ai.documentintelligence.models.AnalyzeResultOperation;
@@ -378,8 +376,6 @@ After you add a code sample to your application, navigate back to your main proj
378376

379377
```java
380378

381-
import com.azure.ai.formrecognizer.*;
382-
383379
import com.azure.ai.formrecognizer.documentanalysis.models.*;
384380
import com.azure.ai.formrecognizer.documentanalysis.DocumentAnalysisClient;
385381
import com.azure.ai.formrecognizer.documentanalysis.DocumentAnalysisClientBuilder;
@@ -513,7 +509,6 @@ To view the entire output, visit the Azure samples repository on GitHub to view
513509
**Add the following code sample to the `FormRecognizer.java` file. Make sure you update the key and endpoint variables with values from your Azure portal Document Intelligence instance:**
514510

515511
```java
516-
import com.azure.ai.formrecognizer;
517512

518513
import com.azure.ai.formrecognizer.documentanalysis.DocumentAnalysisClient;
519514
import com.azure.ai.formrecognizer.documentanalysis.DocumentAnalysisClientBuilder;
@@ -641,7 +636,6 @@ Analyze and extract common fields from specific document types using a prebuilt
641636
**Add the following code sample to the `DocIntelligence.java` file. Make sure you update the key and endpoint variables with values from your Azure portal Document Intelligence instance:**
642637

643638
```java
644-
import com.azure.ai.documentintelligence;
645639

646640
import com.azure.ai.documentintelligence.models.AnalyzeDocumentRequest;
647641
import com.azure.ai.documentintelligence.models.AnalyzeResult;
@@ -830,8 +824,6 @@ After you add a code sample to your application, navigate back to your main proj
830824

831825
```java
832826

833-
import com.azure.ai.formrecognizer.*;
834-
835827
import com.azure.ai.formrecognizer.documentanalysis.models.*;
836828
import com.azure.ai.formrecognizer.documentanalysis.DocumentAnalysisClient;
837829
import com.azure.ai.formrecognizer.documentanalysis.DocumentAnalysisClientBuilder;
@@ -1023,7 +1015,6 @@ To view the entire output, visit the Azure samples repository on GitHub to view
10231015
**Add the following code sample to the `FormRecognizer.java` file. Make sure you update the key and endpoint variables with values from your Azure portal Document Intelligence instance:**
10241016

10251017
```java
1026-
import com.azure.ai.formrecognizer;
10271018

10281019
import com.azure.ai.formrecognizer.documentanalysis.DocumentAnalysisClient;
10291020
import com.azure.ai.formrecognizer.documentanalysis.DocumentAnalysisClientBuilder;

articles/ai-services/translator/reference/v3-0-languages.md

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manager: nitinme
88

99
ms.service: azure-ai-translator
1010
ms.topic: reference
11-
ms.date: 09/19/2023
11+
ms.date: 07/19/2024
1212
ms.author: lajanuar
1313
---
1414

@@ -24,9 +24,16 @@ Send a `GET` request to:
2424

2525
```HTTP
2626
https://api.cognitive.microsofttranslator.com/languages?api-version=3.0
27+
28+
```
29+
30+
For virtual networks, use your custom domain endpoint:
31+
32+
```HTTP
33+
https://<your-custom-domain>.cognitiveservices.azure.com/languages?api-version=3.0
2734
```
2835

29-
_See_ [**Virtual Network Support**](v3-0-reference.md#virtual-network-support) for Translator service selected network and private endpoint configuration and support.
36+
For more information, _see_ [**Virtual Network Support**](v3-0-reference.md#virtual-network-support) for Translator service selected network and private endpoint configuration and support.
3037

3138
## Request parameters
3239

@@ -43,14 +50,14 @@ Request headers are:
4350

4451
|Headers|Description|
4552
|---|---|
46-
|Accept-Language|**Optional request header**.<br><br>The language to use for user interface strings. Some of the fields in the response are names of languages or names of regions. Use this parameter to define the language in which these names are returned. The language is specified by providing a well-formed BCP 47 language tag. For instance, use the value `fr` to request names in French or use the value `zh-Hant` to request names in Chinese Traditional.<br/>Names are provided in the English language when a target language isn't specified or when localization isn't available.|
53+
|Accept-Language|**Optional request header**.<br><br>The language to use for user interface strings. Some of the fields in the response are names of languages or names of regions. Use this parameter to define the language in which these names are returned. The language is specified by providing a well-formed `BCP` 47 language tag. For instance, use the value `fr` to request names in French or use the value `zh-Hant` to request names in Chinese Traditional.<br/>Names are provided in the English language when a target language isn't specified or when localization isn't available.|
4754
|X-ClientTraceId|**Optional request header**.<br>A client-generated GUID to uniquely identify the request.|
4855

4956
Authentication isn't required to get language resources.
5057

5158
## Response body
5259

53-
A client uses the `scope` query parameter to define which groups of languages it's interested in.
60+
A client uses the `scope` query parameter to define which groups of languages to list.
5461

5562
* `scope=translation` provides languages supported to translate text from one language to another language;
5663

@@ -80,7 +87,7 @@ The value for each property is as follows.
8087

8188
* `translation` property
8289

83-
The value of the `translation` property is a dictionary of (key, value) pairs. Each key is a BCP 47 language tag. A key identifies a language for which text can be translated to or translated from. The value associated with the key is a JSON object with properties that describe the language:
90+
The value of the `translation` property is a dictionary of (key, value) pairs. Each key is a `BCP` 47 language tag. A key identifies a language for which text can be translated to or translated from. The value associated with the key is a JSON object with properties that describe the language:
8491

8592
* `name`: Display name of the language in the locale requested via `Accept-Language` header.
8693

@@ -106,7 +113,7 @@ The value for each property is as follows.
106113

107114
* `transliteration` property
108115

109-
The value of the `transliteration` property is a dictionary of (key, value) pairs. Each key is a BCP 47 language tag. A key identifies a language for which text can be converted from one script to another script. The value associated with the key is a JSON object with properties that describe the language and its supported scripts:
116+
The value of the `transliteration` property is a dictionary of (key, value) pairs. Each key is a `BCP` 47 language tag. A key identifies a language for which text can be converted from one script to another script. The value associated with the key is a JSON object with properties that describe the language and its supported scripts:
110117

111118
* `name`: Display name of the language in the locale requested via `Accept-Language` header.
112119

@@ -171,7 +178,7 @@ The value for each property is as follows.
171178

172179
* `dictionary` property
173180

174-
The value of the `dictionary` property is a dictionary of (key, value) pairs. Each key is a BCP 47 language tag. The key identifies a language for which alternative translations and back-translations are available. The value is a JSON object that describes the source language and the target languages with available translations:
181+
The value of the `dictionary` property is a dictionary of (key, value) pairs. Each key is a `BCP` 47 language tag. The key identifies a language for which alternative translations and back-translations are available. The value is a JSON object that describes the source language and the target languages with available translations:
175182

176183
* `name`: Display name of the source language in the locale requested via `Accept-Language` header.
177184

@@ -209,7 +216,7 @@ The value for each property is as follows.
209216

210217
The structure of the response object doesn't change without a change in the version of the API. For the same version of the API, the list of available languages may change over time because Microsoft Translator continually extends the list of languages supported by its services.
211218

212-
The list of supported languages doesn't change frequently. To save network bandwidth and improve responsiveness, a client application should consider caching language resources and the corresponding entity tag (`ETag`). Then, the client application can periodically (for example, once every 24 hours) query the service to fetch the latest set of supported languages. Passing the current `ETag` value in an `If-None-Match` header field allows the service to optimize the response. If the resource hasn't been modified, the service returns status code 304 and an empty response body.
219+
The list of supported languages doesn't change frequently. To save network bandwidth and improve responsiveness, a client application should consider caching language resources and the corresponding entity tag (`ETag`). Then, the client application can periodically (for example, once every 24 hours) query the service to fetch the latest set of supported languages. Passing the current `ETag` value in an `If-None-Match` header field allows the service to optimize the response. If the resource isn't modified, the service returns status code 304 and an empty response body.
213220

214221
## Response headers
215222

@@ -225,9 +232,9 @@ The following are the possible HTTP status codes that a request returns.
225232
|Status Code|Description|
226233
|--- |--- |
227234
|200|Success.|
228-
|304|The resource hasn't been modified since the version specified by request headers `If-None-Match`.|
235+
|304|The resource isn't modified and aligns with the version specified by request headers `If-None-Match`.|
229236
|400|One of the query parameters is missing or not valid. Correct request parameters before retrying.|
230-
|429|The server rejected the request because the client has exceeded request limits.|
237+
|429|The server rejected the request because the client exceeded request limits.|
231238
|500|An unexpected error occurred. If the error persists, report it with: date and time of the failure, request identifier from response header `X-RequestId`, and client identifier from request header `X-ClientTraceId`.|
232239
|503|Server temporarily unavailable. Retry the request. If the error persists, report it with: date and time of the failure, request identifier from response header `X-RequestId`, and client identifier from request header `X-ClientTraceId`.|
233240

0 commit comments

Comments
 (0)