TranslationGlossary Class

Glossary / translation memory to apply to the translation.

Inheritance
builtins.object
TranslationGlossary

Constructor

TranslationGlossary(glossary_url: str, file_format: str, *, format_version: str | None = None, storage_source: str | None = None)

Parameters

Name Description
glossary_url
Required
str

Required. Location of the glossary file. This should be a URL to the glossary file in the storage blob container. The URL can be a SAS URL (see the service documentation for the supported SAS permissions for accessing storage containers/blobs: https://aka.ms/azsdk/documenttranslation/sas-permissions) or a managed identity can be created and used to access documents in your storage account (see https://aka.ms/azsdk/documenttranslation/managed-identity). Note that if the translation language pair is not present in the glossary, it will not be applied.

file_format
Required
str

Required. Format of the glossary file. To see supported formats, call the get_supported_glossary_formats client method.

Keyword-Only Parameters

Name Description
format_version
str

File format version. If not specified, the service will use the default_version for the file format returned from the get_supported_glossary_formats client method.

storage_source
str

Storage Source. Default value: "AzureBlob". Currently only "AzureBlob" is supported.

Variables

Name Description
glossary_url
str

Required. Location of the glossary file. This should be a URL to the glossary file in the storage blob container. The URL can be a SAS URL (see the service documentation for the supported SAS permissions for accessing storage containers/blobs: https://aka.ms/azsdk/documenttranslation/sas-permissions) or a managed identity can be created and used to access documents in your storage account (see https://aka.ms/azsdk/documenttranslation/managed-identity). Note that if the translation language pair is not present in the glossary, it will not be applied.

file_format
str

Required. Format of the glossary file. To see supported formats, call the get_supported_glossary_formats client method.

format_version
str

File format version. If not specified, the service will use the default_version for the file format returned from the get_supported_glossary_formats client method.

storage_source
str

Storage Source. Default value: "AzureBlob". Currently only "AzureBlob" is supported.