Udostępnij za pośrednictwem


DocumentTranslationModelFactory.TranslationGlossary Method

Definition

Initializes a new instance of TranslationGlossary.

public static Azure.AI.Translation.Document.TranslationGlossary TranslationGlossary (Uri glossaryUri = default, string format = default, string formatVersion = default, Azure.AI.Translation.Document.TranslationStorageSource? storageSource = default);
static member TranslationGlossary : Uri * string * string * Nullable<Azure.AI.Translation.Document.TranslationStorageSource> -> Azure.AI.Translation.Document.TranslationGlossary
Public Shared Function TranslationGlossary (Optional glossaryUri As Uri = Nothing, Optional format As String = Nothing, Optional formatVersion As String = Nothing, Optional storageSource As Nullable(Of TranslationStorageSource) = Nothing) As TranslationGlossary

Parameters

glossaryUri
Uri

Location of the glossary. We will use the file extension to extract the formatting if the format parameter is not supplied.

If the translation language pair is not present in the glossary, it will not be applied

format
String

Format.

formatVersion
String

Optional Version. If not specified, default is used.

storageSource
Nullable<TranslationStorageSource>

Storage Source.

Returns

A new TranslationGlossary instance for mocking.

Applies to