![]() Pass the key as a string into an instance of AzureKe圜redential. To use an API key as the credential parameter, The API key can be found in the Azure Portal or by running the following Azure CLI command:Īz cognitiveservices account keys list -name "resource-name" -resource-group "resource-group-name" Create the client with AzureKe圜redential ![]() ![]() Follow the instructions in the above link to format your endpoint: Note that the service requires a custom domain endpoint. You can find the endpoint for your Translator resource using the In order to interact with the Document Translation feature service, you will need to create an instance of a client.Īn endpoint and credential are necessary to instantiate the client object. To access the service, create a Translator resource.īelow is an example of how you can create a Translator resource using the CLI: # Create a new resource group to hold the Translator resource - # if using an existing resource group, skip this stepĪz group create -name my-resource-group -location westus2Īz cognitiveservices account create \ -name document-translation-resource \ -custom-domain document-translation-resource \ -resource-group my-resource-group \ -kind TextTranslation \ -sku S1 \ -location westus2 \ -yes The Document Translation feature supports single-service access only. Note: This version of the client library defaults to the v1.0 version of the service Create a Translator resource Install the Azure Document Translation client library for Python with pip: pip install azure-ai-translation-document You must have an Azure subscription and a.Python 3.6 or later is required to use this package.For more information and questions, please refer to Getting started Prerequisites Source code | Package (PyPI) | API reference documentation | Product documentation | Samples DisclaimerĪzure SDK Python packages support for Python 2.7 has ended 01 January 2022. Apply a custom translation model or glossaries to tailor translation to your specific case.Check the translation status and progress of each document in the translation operation.Translate numerous, large files from an Azure Blob Storage container to a target container in your language of choice.Use the client library for Document Translation to: Azure Document Translation client library for PythonĪzure Cognitive Services Document Translation is a cloud service that can be used to translate multiple and complex documents across languages and dialects while preserving original document structure and data format. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |