Skip to content

Commit 70bbb86

Browse files
Merge pull request #277476 from laujan/patch-1
Update v3-0-detect.md
2 parents 74595f4 + b21580c commit 70bbb86

File tree

6 files changed

+49
-49
lines changed

6 files changed

+49
-49
lines changed

articles/ai-services/translator/reference/v3-0-break-sentence.md

Lines changed: 6 additions & 6 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: 07/18/2023
11+
ms.date: 06/06/2024
1212
ms.author: lajanuar
1313
---
1414

@@ -41,9 +41,9 @@ Request headers include:
4141

4242
| Headers | Description |
4343
| ------- | ----------- |
44-
| Authentication header(s) <img width=200/> | **Required request header**.<br/>See <a href="v3-0-reference.md#authentication">available options for authentication</a>. |
44+
| Authentication headers <img width=200/> | **Required request header**.<br/>See <a href="v3-0-reference.md#authentication">available options for authentication</a>. |
4545
| Content-Type | **Required request header**.<br/>Specifies the content type of the payload. Possible values are: `application/json`. |
46-
| Content-Length | **Required request header**.<br/>The length of the request body. |
46+
| Content-Length | **Optional**.<br/>The length of the request body. |
4747
| X-ClientTraceId | **Optional**.<br/>A client-generated GUID to uniquely identify the request. You can omit this header if you include the trace ID in the query string using a query parameter named `ClientTraceId`. |
4848

4949
## Request body
@@ -99,7 +99,7 @@ An example JSON response is:
9999

100100
|Headers|Description|
101101
|--- |--- |
102-
|X-RequestId|Value generated by the service to identify the request. It's used for troubleshooting purposes.|
102+
|X-RequestId|Value generated by the service to identify the request and used for troubleshooting purposes.|
103103

104104
## Response status codes
105105

@@ -110,8 +110,8 @@ The following are the possible HTTP status codes that a request returns.
110110
|200|Success.|
111111
|400|One of the query parameters is missing or not valid. Correct request parameters before retrying.|
112112
|401|The request couldn't be authenticated. Check that credentials are specified and valid.|
113-
|403|The request isn't authorized. Check the details error message. This response code often indicates that all free translations provided with a trial subscription have been used up.|
114-
|429|The server rejected the request because the client has exceeded request limits.|
113+
|403|The request isn't authorized. Check the details error message. This response code often indicates that all free translations provided with a trial subscription are used.|
114+
|429|The server rejected the request because the client exceeded request limits.|
115115
|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`.|
116116
|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`.|
117117

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

Lines changed: 9 additions & 9 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: 06/06/2024
1212
ms.author: lajanuar
1313
---
1414

@@ -40,10 +40,10 @@ Request headers include:
4040

4141
| Headers | Description |
4242
| --- | --- |
43-
| Authentication header(s) | <em>Required request header</em>.<br>See [available options for authentication](./v3-0-reference.md#authentication)</a>. |
44-
| Content-Type | *Required request header*.<br>Specifies the content type of the payload. Possible values are: `application/json`. |
45-
| Content-Length | *Required request header*.<br>The length of the request body. |
46-
| X-ClientTraceId | *Optional*.<br>A client-generated GUID to uniquely identify the request. You can omit this header if you include the trace ID in the query string using a query parameter named `ClientTraceId`. |
43+
| Authentication headers | <em>Required request header</em>.<br>See [available options for authentication](./v3-0-reference.md#authentication)</a>. |
44+
| Content-Type | _Required request header_.<br>Specifies the content type of the payload. Possible values are: `application/json`. |
45+
| Content-Length | _Optional_.<br>The length of the request body. |
46+
| X-ClientTraceId | _Optional_.<br>A client-generated GUID to uniquely identify the request. You can omit this header if you include the trace ID in the query string using a query parameter named `ClientTraceId`. |
4747

4848
## Request body
4949

@@ -72,7 +72,7 @@ A successful response is a JSON array with one result for each string in the inp
7272

7373
* `isTransliterationSupported`: A boolean value that is true if the detected language is one of the languages supported for transliteration.
7474

75-
* `alternatives`: An array of other possible languages. Each element of the array is another object the following properties: `language`, `score`, `isTranslationSupported` and `isTransliterationSupported`.
75+
* `alternatives`: An array of other possible languages. Each element of the array is another object the following properties: `language`, `score`, `isTranslationSupported`, and `isTransliterationSupported`.
7676

7777
An example JSON response is:
7878

@@ -98,7 +98,7 @@ An example JSON response is:
9898

9999
| Headers | Description |
100100
| --- | --- |
101-
| X-RequestId | Value generated by the service to identify the request. It's used for troubleshooting purposes. |
101+
| X-RequestId | Value generated by the service to identify the request and used for troubleshooting purposes. |
102102

103103
## Response status codes
104104

@@ -109,8 +109,8 @@ The following are the possible HTTP status codes that a request returns.
109109
| 200 | Success. |
110110
| 400 | One of the query parameters is missing or not valid. Correct request parameters before retrying. |
111111
| 401 | The request couldn't be authenticated. Check that credentials are specified and valid. |
112-
| 403 | The request isn't authorized. Check the details error message. This code often indicates that all free translations provided with a trial subscription have been used up. |
113-
| 429 | The server rejected the request because the client has exceeded request limits. |
112+
| 403 | The request isn't authorized. Check the details error message. This code often indicates that all free translations provided with a trial subscription are used. |
113+
| 429 | The server rejected the request because the client exceeded request limits. |
114114
| 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`. |
115115
| 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`. |
116116

articles/ai-services/translator/reference/v3-0-dictionary-examples.md

Lines changed: 5 additions & 5 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: 06/06/2024
1212
ms.author: lajanuar
1313
---
1414
<!-- markdownlint-disable MD033 -->
@@ -41,9 +41,9 @@ Request headers include:
4141

4242
| Headers | Description |
4343
| ------ | ----------- |
44-
| Authentication header(s) <img width=200/> | **Required request header**.<br>See [Authentication](v3-0-reference.md#authentication)>available options for authentication</a>. |
44+
| Authentication headers <img width=200/> | **Required request header**.<br>See [Authentication](v3-0-reference.md#authentication)>available options for authentication</a>. |
4545
| Content-Type | **Required request header**.<br>Specifies the content type of the payload. Possible values are: `application/json`. |
46-
| Content-Length | **Required request header**.<br>The length of the request body. |
46+
| Content-Length | **Optional**.<br>The length of the request body. |
4747
| X-ClientTraceId | **Optional**.<br>A client-generated GUID to uniquely identify the request. You can omit this header if you include the trace ID in the query string using a query parameter named `ClientTraceId`. |
4848

4949
## Request body
@@ -77,11 +77,11 @@ A successful response is a JSON array with one result for each string in the inp
7777

7878
* `examples`: A list of examples for the (source term, target term) pair. Each element of the list is an object with the following properties:
7979

80-
* `sourcePrefix`: The string to concatenate _before_ the value of `sourceTerm` to form a complete example. Don't add a space character, since it's already there when it should be. This value may be an empty string.
80+
* `sourcePrefix`: The string to concatenate _before_ the value of `sourceTerm` to form a complete example. Don't add a space character, since it's already there when it should be. This value can be an empty string.
8181

8282
* `sourceTerm`: A string equal to the actual term looked up. The string is added with `sourcePrefix` and `sourceSuffix` to form the complete example. Its value is separated so it can be marked in a user interface, for example, by bolding it.
8383

84-
* `sourceSuffix`: The string to concatenate _after_ the value of `sourceTerm` to form a complete example. Don't add a space character, since it's already there when it should be. This value may be an empty string.
84+
* `sourceSuffix`: The string to concatenate _after_ the value of `sourceTerm` to form a complete example. Don't add a space character, since it's already there when it should be. This value can be an empty string.
8585

8686
* `targetPrefix`: A string similar to `sourcePrefix` but for the target.
8787

articles/ai-services/translator/reference/v3-0-dictionary-lookup.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ manager: nitinme
88

99
ms.service: azure-ai-translator
1010
ms.topic: reference
11-
ms.date: 09/19/2023
11+
ms.date: 06/06/2024
1212
ms.author: lajanuar
1313
---
1414
<!-- markdownlint-disable MD033 -->
1515

1616
# Translator 3.0: Dictionary Lookup
1717

18-
Provides alternative translations for a word and a few idiomatic phrases. Each translation has a part-of-speech and a list of back-translations. The back-translations enable a user to understand the translation in context. The [Dictionary Example](./v3-0-dictionary-examples.md) operation allows further drill down to see example uses of each translation pair.
18+
Provides alternative translations for a word and a few idiomatic phrases. Each translation has a part-of-speech and a list of back-translations. The back-translations enable a user to understand the translation in context. The [Dictionary Example](./v3-0-dictionary-examples.md) operation includes example uses of each translation pair.
1919

2020
## Request URL
2121

@@ -42,9 +42,9 @@ Request headers include:
4242

4343
| Headers | Description |
4444
| ------ | ----------- |
45-
| Authentication header(s) | **Required request header**.<br/>See [Authentication](v3-0-reference.md#authentication).|
45+
| Authentication headers | **Required request header**.<br/>See [Authentication](v3-0-reference.md#authentication).|
4646
| Content-Type | **Required request header**.<br>Specifies the content type of the payload. Possible values are: `application/json`. |
47-
| Content-Length | **Required request header**.<br>The length of the request body. |
47+
| Content-Length | **Optional**.<br>The length of the request body. |
4848
| X-ClientTraceId | **Optional**.<br/>A client-generated GUID to uniquely identify the request. You can omit this header if you include the trace ID in the query string using a query parameter named `ClientTraceId`. |
4949

5050
## Request body
@@ -80,30 +80,30 @@ A successful response is a JSON array with one result for each string in the inp
8080

8181
| Tag name | Description |
8282
|----------|--------------|
83-
| ADJ | Adjectives |
84-
| ADV | Adverbs |
85-
| CONJ | Conjunctions |
86-
| DET | Determiners |
87-
| MODAL | Verbs |
88-
| NOUN | Nouns |
89-
| PREP | Prepositions |
90-
| PRON | Pronouns |
91-
| VERB | Verbs |
92-
| OTHER | Other |
83+
| `ADJ` | Adjectives |
84+
| `ADV` | Adverbs |
85+
| `CONJ` | Conjunctions |
86+
| `DET` | Determiners |
87+
| `MODAL` | Verbs |
88+
| `NOUN` | Nouns |
89+
| `PREP` | Prepositions |
90+
| `PRON` | Pronouns |
91+
| `VERB` | Verbs |
92+
| `OTHER` | Other |
9393

94-
As an implementation note, these tags are part-of-speech tagging the English side, and then taking the most frequent tag for each source/target pair. So if people frequently translate a Spanish word to a different part-of-speech tag in English, tags may end up being wrong (with respect to the Spanish word).
94+
As an implementation note, these tags are part-of-speech tagging the English side, and then taking the most frequent tag for each source/target pair. So if people frequently translate a Spanish word to a different part-of-speech tag in English, tags cab end up being wrong (with respect to the Spanish word).
9595

96-
* `confidence`: A value between 0.0 and 1.0 that represents the "confidence" (or more accurately, "probability in the training data") of that translation pair. The sum of confidence scores for one source word may or may not sum to 1.0.
96+
* `confidence`: A value between 0.0 and 1.0 that represents the "confidence" (or more accurately, "probability in the training data") of that translation pair. The sum of confidence scores for one source word can or can't sum to 1.0.
9797

98-
* `prefixWord`: A string giving the word to display as a prefix of the translation. Currently, this property is the gendered determiner of nouns, in languages that have gendered determiners. For example, the prefix of the Spanish word `mosca` is `la`, since `mosca` is a feminine noun in Spanish. This value is only dependent on the translation, and not on the source. If there's no prefix, it's the empty string.
98+
* `prefixWord`: A string giving the word to display as a prefix of the translation. Currently, this property is the gendered determiner of nouns, in languages that have gender determiners. For example, the prefix of the Spanish word `mosca` is `la`, since `mosca` is a feminine noun in Spanish. This value is only dependent on the translation, and not on the source. If there's no prefix, it's the empty string.
9999

100-
* `backTranslations`: A list of "back translations" of the target. For example, source words that the target can translate to. The list is guaranteed to contain the source word that was requested (for example, if the source word being looked up is `fly`, then it's guaranteed that `fly` is in the `backTranslations` list). However, it isn't guaranteed to be in the first position, and often isn't. Each element of the `backTranslations` list is an object described by the following properties:
100+
* `backTranslations`: A list of "back translations" of the target. For example, source words that the target can translate to. The list is guaranteed to contain the source word that was requested (for example, if the source word being looked up is `fly`, then `fly` is included in the `backTranslations` list). However, it isn't guaranteed to be in the first position, and often isn't. Each element of the `backTranslations` list is an object described by the following properties:
101101

102102
* `normalizedText`: A string giving the normalized form of the source term that is a back-translation of the target. This value should be used as input to [lookup examples](./v3-0-dictionary-examples.md).
103103

104104
* `displayText`: A string giving the source term that is a back-translation of the target in a form best suited for end-user display.
105105

106-
* `numExamples`: An integer representing the number of examples that are available for this translation pair. Actual examples must be retrieved with a separate call to [lookup examples](./v3-0-dictionary-examples.md). The number is mostly intended to facilitate display in a UX. For example, a user interface may add a hyperlink to the back-translation if the number of examples is greater than zero. Then the back-translation is shown as plain text if there are no examples. The actual number of examples returned by a call to [lookup examples](./v3-0-dictionary-examples.md) may be less than `numExamples`, because more filtering may be applied on the fly to remove "bad" examples.
106+
* `numExamples`: An integer representing the number of examples that are available for this translation pair. Actual examples must be retrieved with a separate call to [lookup examples](./v3-0-dictionary-examples.md). The number is mostly intended to facilitate display in a UX. For example, a user interface can add a hyperlink to the back-translation if the number of examples is greater than zero. Then the back-translation is shown as plain text if there are no examples. The actual number of examples returned by a call to [lookup examples](./v3-0-dictionary-examples.md) can be less than `numExamples`, because more filtering can be applied on the fly to remove "bad" examples.
107107

108108
* `frequencyCount`: An integer representing the frequency of this translation pair in the data. The main purpose of this field is to provide a user interface with a means to sort back-translations so the most frequent terms are first.
109109

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

Lines changed: 2 additions & 2 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: 02/12/2024
11+
ms.date: 06/06/2024
1212
ms.author: lajanuar
1313
---
1414

@@ -59,7 +59,7 @@ Request headers include:
5959
| --- | --- |
6060
| Authentication headers | _Required request header_. <br>See [available options for authentication](./v3-0-reference.md#authentication). |
6161
| Content-Type | _Required request header_. <br>Specifies the content type of the payload. <br>Accepted value is `application/json; charset=UTF-8`. |
62-
| Content-Length | _Required request header_. <br>The length of the request body. |
62+
| Content-Length | _Optional_. <br>The length of the request body. |
6363
| X-ClientTraceId | _Optional_. <br>A client-generated GUID to uniquely identify the request. You can omit this header if you include the trace ID in the query string using a query parameter named `ClientTraceId`. |
6464

6565
## Request body

0 commit comments

Comments
 (0)