TranslationTarget Class
Destination for the finished translated documents.
- Inheritance
-
builtins.objectTranslationTarget
Constructor
TranslationTarget(target_url: str, language_code: str, *, category_id: Optional[str] = None, glossaries: Optional[List[azure.ai.translation.document._models.TranslationGlossary]] = None, storage_source: Optional[str] = None)
Parameters
- target_url
- str
Required. The target location for your translated documents. This can be a SAS URL (see the service documentation for the supported SAS permissions for accessing target 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).
- language_code
- str
Required. Target Language Code. This is the language you want your documents to be translated to. See supported languages here: https://docs.microsoft.com/azure/cognitive-services/translator/language-support#translate
- category_id
- str
Category / custom model ID for using custom translation.
- glossaries
- list[TranslationGlossary]
Glossaries to apply to translation.
- storage_source
- str
Storage Source. Default value: "AzureBlob". Currently only "AzureBlob" is supported.
Variables
- target_url
- str
Required. The target location for your translated documents. This can be a SAS URL (see the service documentation for the supported SAS permissions for accessing target 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).
- language_code
- str
Required. Target Language Code. This is the language you want your documents to be translated to. See supported languages here: https://docs.microsoft.com/azure/cognitive-services/translator/language-support#translate
- category_id
- str
Category / custom model ID for using custom translation.
- glossaries
- list[TranslationGlossary]
Glossaries to apply to translation.
- storage_source
- str
Storage Source. Default value: "AzureBlob". Currently only "AzureBlob" is supported.
Feedback
Submit and view feedback for