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/document-translation/how-to-guides/create-use-glossaries.md
+21-35Lines changed: 21 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
-
title: Create and use glossary (custom dictionary) with Document Translation
3
-
description: How to create and use a glossary (custom dictionary) with Document Translation.
2
+
title: Create and use a glossary with Document Translation
3
+
description: How to create and use a glossary with Document Translation.
4
4
ms.topic: how-to
5
5
manager: nitinme
6
6
ms.author: lajanuar
@@ -10,49 +10,23 @@ ms.date: 03/14/2023
10
10
11
11
# Create and use glossaries Document Translation
12
12
13
-
A glossary is a custom dictionary that you create for the Document Translation service to use during the translation process. Currently, the glossary feature supports one-to-one (not one-to-many language) source-to-target language translation. Common use cases for glossaries include:
13
+
A glossary is a list of terms with definitions that you create for the Document Translation service to use during the translation process. Currently, the glossary feature supports one-to-one source-to-target language translation. Common use cases for glossaries include:
14
14
15
-
***Domain-specific terminology**. Create a glossary that designates specific meanings for your unique context.
15
+
***Context-specific terminology**. Create a glossary that designates specific meanings for your unique context.
16
16
17
-
***Name brand preservation**. Restrict Document Translation from translating product name brands by using a glossary with the same source and target text.
17
+
***No translation**. For example, you can restrict Document Translation from translating product name brands by using a glossary with the same source and target text.
18
18
19
19
***Specify translation for words with several meanings**. Choose a specific translation for poly​semantic words.
20
20
21
-
## Case sensitivity
22
-
23
-
By default, Azure Cognitive Services Translator service API is **case-sensitive**, meaning that it matches terms in the source text based on case.
24
-
25
-
#### Partial sentence application
26
-
27
-
When your glossary is applied to **part of a sentence**, the Document Translation API checks whether the glossary term matches the case in the source text. If the casing doesn't match, the glossary isn't applied.
28
-
29
-
#### Complete sentence application
30
-
31
-
When your glossary is applied to a **complete sentence**, the service becomes **case-insensitive**. It matches the glossary term regardless of its case in the source text. This provision applies the correct results for use cases involving idioms and quotes.
32
-
33
21
## Create, upload, and use a glossary file
34
22
35
-
1.**Create your glossary file.** Create a file in a supported format that contains all the terms and phrases you want to use in your translation.
36
-
37
-
* You can check to see if your format is supported using the [Get supported glossary formats](../reference/get-supported-glossary-formats.md).
38
-
39
-
* To follow, is a sample REST API call using PowerShell. To use the sample, update `your-document-translation-key` and `your-document-translation-endpoint` with values from the Azure portal. Only one key is necessary to make an API call.
23
+
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.
40
24
41
-
***Get supported glossary formats request***
25
+
* To check if your format is supported *see**[Get supported glossary formats](../reference/get-supported-glossary-formats.md).
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.
In the following English-source glossary, the words can have different meanings depending upon the context in which they're used. The glossary provides translations for each word in the file to help ensure accurate translations.
54
-
55
-
For instance, when the word `Bank` appears in a financial document, it would be translated as `Banque` to reflect its financial meaning. If the word `Bank` appears in a geography document, it might be translated as `land beside a river` to reflect its topographical meaning. Similarly, the word `Crane` can refer to either a `bird` or a `machine`.
29
+
For instance, when the word `Bank` appears in a financial document, it would be translated as `Banque` to reflect its financial meaning. If the word `Bank` appears in a geography document, it might be translated as `shore` to reflect its topographical meaning. Similarly, the word `Crane` can refer to either a `bird` or a `machine`.
By default, Azure Cognitive Services Translator service API is **case-sensitive**, meaning that it matches terms in the source text based on case.
44
+
45
+
#### Partial sentence application
46
+
47
+
When your glossary is applied to **part of a sentence**, the Document Translation API checks whether the glossary term matches the case in the source text. If the casing doesn't match, the glossary isn't applied.
48
+
49
+
#### Complete sentence application
50
+
51
+
When your glossary is applied to a **complete sentence**, the service becomes **case-insensitive**. It matches the glossary term regardless of its case in the source text. This provision applies the correct results for use cases involving idioms and quotes.
52
+
67
53
## Next steps
68
54
69
55
Try the Document Translation how-to guide to asynchronously translate whole documents using a programming language of your choice:
0 commit comments