TranslationGlossary Class
Glossary / translation memory to apply to the translation.
- Inheritance
-
builtins.objectTranslationGlossary
Constructor
TranslationGlossary(glossary_url: str, file_format: str, *, format_version: str | None = None, storage_source: str | None = None)
Parameters
Name | Description |
---|---|
glossary_url
Required
|
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
|
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
|
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
|
Storage Source. Default value: "AzureBlob". Currently only "AzureBlob" is supported. |
Variables
Name | Description |
---|---|
glossary_url
|
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. Format of the glossary file. To see supported formats, call the get_supported_glossary_formats client method. |
format_version
|
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
|
Storage Source. Default value: "AzureBlob". Currently only "AzureBlob" is supported. |
Azure SDK for Python
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for