All Projects → MicrosoftTranslator → Text-Translation-API-V3-Python

MicrosoftTranslator / Text-Translation-API-V3-Python

Licence: other
No description, website, or topics provided.

Programming Languages

python
139335 projects - #7 most used programming language
Batchfile
5799 projects
page_type name description urlFragment languages products
sample
Microsoft Translator Python samples (v3)
This repository includes Python code samples for Microsoft Translator.
translator-python-v3
python
azure
azure-cognitive-services
azure-translator

Translator API V3 - Python Samples

This repository includes Python code samples for Microsoft Translator. The samples are designed to run on Python 2.7.x and Python 3.x. Each sample corresponds to a Quickstart activity on doc.microsoft.com, including:

  • Translating text
  • Transliterating text
  • Identifying the language of source text
  • Getting alternate translations
  • Getting a complete list of supported languages
  • Determining sentence length

Get started with the Translator quickstart.

Prerequisites

Here's what you'll need before you use these samples:

Code samples

This repository includes a sample for each of the methods made available by the Microsoft Translator API v3. To use each of the samples, follow these instructions:

  • Create a new project in your favorite IDE or editor.

  • Copy the code from one of the samples into your project.

  • Set your subscription key, the Azure region of your resource and the Text Translation endpoint as environment variables TRANSLATOR_TEXT_SUBSCRIPTION_KEY TRANSLATOR_TEXT_REGION TRANSLATOR_TEXT_ENDPOINT

  • Run the program. For example: python Translate.py.

Resources

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].