You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cognitive-services/Translator/reference/v3-0-translate.md
+13-3Lines changed: 13 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ manager: nitinme
9
9
ms.service: cognitive-services
10
10
ms.subservice: translator-text
11
11
ms.topic: reference
12
-
ms.date: 03/20/2020
12
+
ms.date: 04/07/2020
13
13
ms.author: swmachan
14
14
---
15
15
@@ -450,6 +450,14 @@ The response is:
450
450
451
451
### Obtain alignment information
452
452
453
+
Alignment is returned as a string value of the following format for every word of the source. The information for each word is separated by a space, including for non-space-separated languages (scripts) like Chinese:
Example alignment string: "0:0-7:10 1:2-11:20 3:4-0:3 3:4-4:6 5:5-21:21".
458
+
459
+
In other words, the colon separates start and end index, the dash separates the languages, and space separates the words. One word may align with zero, one, or multiple words in the other language, and the aligned words may be non-contiguous. When no alignment information is available, the Alignment element will be empty. The method returns no error in that case.
460
+
453
461
To receive alignment information, specify `includeAlignment=true` on the query string.
454
462
455
463
```curl
@@ -480,8 +488,10 @@ Obtaining alignment information is an experimental feature that we have enabled
480
488
* Alignment is not available for text in HTML format i.e., textType=html
481
489
* Alignment is only returned for a subset of the language pairs:
482
490
- from English to any other language;
483
-
- from any other language to English except for Chinese Simplified, Chinese Traditional, and Latvian to English;
491
+
- from any other language to English except for Chinese Simplified to English;
484
492
- from Japanese to Korean or from Korean to Japanese.
493
+
- from Japanese to Chinese Simplified and Chinese Simplified to Japanese.
494
+
- from Chinese Simplified to Chinese Traditional and Chinese Traditional to Chinese Simplified.
485
495
* You will not receive alignment if the sentence is a canned translation. Example of a canned translation is "This is a test", "I love you" and other high frequency sentences.
486
496
* Alignment is not available when you apply any of the approaches to prevent translation as described [here](../prevent-translation.md)
487
497
@@ -511,7 +521,7 @@ The response is:
511
521
512
522
### Translate with dynamic dictionary
513
523
514
-
If you already know the translation you want to apply to a word or a phrase, you can supply it as markup within the request. The dynamic dictionary is only safe for compound nouns like proper names and product names.
524
+
If you already know the translation you want to apply to a word or a phrase, you can supply it as markup within the request. The dynamic dictionary is only safe for proper nouns such as personal names and product names.
0 commit comments