Skip to content

Commit e25b788

Browse files
Merge pull request #108454 from swmachan/master
Update prevent-translation.md
2 parents 37e1b41 + 6e7e46c commit e25b788

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

articles/cognitive-services/Translator/prevent-translation.md

Lines changed: 5 additions & 6 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: conceptual
11-
ms.date: 11/21/2019
11+
ms.date: 03/20/2020
1212
ms.author: swmachan
1313
---
1414

@@ -17,9 +17,8 @@ ms.author: swmachan
1717
The Translator Text API allows you to tag content so that it isn't translated. For example, you may want to tag code, a brand name, or a word/phrase that doesn't make sense when localized.
1818

1919
## Methods for preventing translation
20-
1. Escape to a Twitter tag @somethingtopassthrough or #somethingtopassthrough. Un-escape after translation. This is the regular expression for valid twitter tags: `\B@[A-Za-z]+[A-Za-z0-9_]+)`. A tag should start with a "@" sign, followed by a character and then followed by one or many characters, digits or underscore. It is recommended to keep tags short and the opening tag must be preceded by a space.
2120

22-
2. Tag your content with `notranslate`. It's by design that this works only when the input textType is set as HTML
21+
1. Tag your content with `notranslate`. It's by design that this works only when the input textType is set as HTML
2322

2423
Example:
2524

@@ -33,11 +32,11 @@ The Translator Text API allows you to tag content so that it isn't translated. F
3332
<div>This will be translated. </div>
3433
```
3534

36-
3. Use the [dynamic dictionary](dynamic-dictionary.md) to prescribe a specific translation.
35+
2. Use the [dynamic dictionary](dynamic-dictionary.md) to prescribe a specific translation.
3736

38-
4. Don't pass the string to the Translator Text API for translation.
37+
3. Don't pass the string to the Translator Text API for translation.
3938

40-
5. Custom Translator: Use a [dictionary in Custom Translator](custom-translator/what-is-dictionary.md) to prescribe the translation of a phrase with 100% probability.
39+
4. Custom Translator: Use a [dictionary in Custom Translator](custom-translator/what-is-dictionary.md) to prescribe the translation of a phrase with 100% probability.
4140

4241

4342
## Next steps

articles/cognitive-services/Translator/reference/v3-0-translate.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ manager: nitinme
99
ms.service: cognitive-services
1010
ms.subservice: translator-text
1111
ms.topic: reference
12-
ms.date: 11/12/2019
12+
ms.date: 03/20/2020
1313
ms.author: swmachan
1414
---
1515

@@ -475,14 +475,15 @@ The response is:
475475
The alignment information starts with `0:2-0:1`, which means that the first three characters in the source text (`The`) map to the first two characters in the translated text (`La`).
476476

477477
#### Limitations
478-
Note the following restrictions:
478+
Obtaining alignment information is an experimental feature that we have enabled for prototyping research and experiences with potential phrase mappings. We may choose to stop supporting this in the future. Here are some of the notable restrictions where alignments are not supported:
479479

480480
* Alignment is not available for text in HTML format i.e., textType=html
481481
* Alignment is only returned for a subset of the language pairs:
482482
- from English to any other language;
483483
- from any other language to English except for Chinese Simplified, Chinese Traditional, and Latvian to English;
484484
- from Japanese to Korean or from Korean to Japanese.
485485
* 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+
* Alignment is not available when you apply any of the approaches to prevent translation as described [here](../prevent-translation.md)
486487

487488
### Obtain sentence boundaries
488489

0 commit comments

Comments
 (0)