Skip to content

Commit 608f170

Browse files
committed
pr review
1 parent 439ff4a commit 608f170

File tree

2 files changed

+26
-25
lines changed

2 files changed

+26
-25
lines changed

articles/cognitive-services/Translator/document-translation/how-to-guides/create-use-glossaries.md

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ A glossary is a list of terms with definitions that you create for the Document
2222

2323
1. **Create your glossary file.** Create a file in a supported format (preferably tab-separated values) that contains all the terms and phrases you want to use in your translation.
2424

25-
To check if your file format is supported, *see** [Get supported glossary formats](../reference/get-supported-glossary-formats.md).
25+
To check if your file format is supported, *see* [Get supported glossary formats](../reference/get-supported-glossary-formats.md).
2626

2727
The following English-source glossary contains words that can have different meanings depending upon the context in which they're used. The glossary provides the expected translation for each word in the file to help ensure accuracy.
2828

@@ -43,7 +43,31 @@ A glossary is a list of terms with definitions that you create for the Document
4343

4444
1. **Specify your glossary in the translation request.** Include the **`glossary URL`**, **`format`**, and **`version`** in your **`POST`** request:
4545

46-
:::code language="json" source="translate-with-glossary.json" range="1-23" highlight="13-15":::
46+
```json
47+
{
48+
"inputs": [
49+
{
50+
"source": {
51+
"sourceUrl": "https://my.blob.core.windows.net/source-en?sv=2019-12-12&st=2021-03-05T17%3A45%3A25Z&se=2021-03-13T17%3A45%3A00Z&sr=c&sp=rl&sig=SDRPMjE4nfrH3csmKLILkT%2Fv3e0Q6SWpssuuQl1NmfM%3D"
52+
},
53+
"targets": [
54+
{
55+
"targetUrl": "https://my.blob.core.windows.net/target-fr?sv=2019-12-12&st=2021-03-05T17%3A49%3A02Z&se=2021-03-13T17%3A49%3A00Z&sr=c&sp=wdl&sig=Sq%2BYdNbhgbq4hLT0o1UUOsTnQJFU590sWYo4BOhhQhs%3D",
56+
"language": "fr",
57+
"glossaries": [
58+
{
59+
"glossaryUrl": "https://my.blob.core.windows.net/glossaries/en-fr.tsv?sv=2019-12-12&st=2021-03-05T17%3A45%3A25Z&se=2021-03-13T17%3A45%3A00Z&sr=c&sp=rl&sig=BsciG3NWoOoRjOYesTaUmxlXzyjsX4AgVkt2AsxJ9to%3D",
60+
"format": "tsv",
61+
"version": "1.2"
62+
}
63+
]
64+
65+
}
66+
]
67+
}
68+
]
69+
}
70+
```
4771

4872
### Case sensitivity
4973

articles/cognitive-services/Translator/document-translation/how-to-guides/translate-with-glossary.json

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)