• Stars
    star
    107
  • Rank 323,587 (Top 7 %)
  • Language
    Python
  • License
    Other
  • Created over 6 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

More Repositories

1

DocumentTranslator-Legacy

Microsoft Document Translator (Archive) - Replaced by the MicrosoftTranslator/DocumentTranslation project in this repository.
C#
407
star
2

DocumentTranslation

Command Line tool and Windows application for document translation, a local interface to the Azure Document Translation service for Windows, macOS and Linux.
C#
130
star
3

GEMBA

GEMBA — GPT Estimation Metric Based Assessment
Python
86
star
4

NTREX

NTREX -- News Test References for MT Evaluation
72
star
5

Local-Feature-Android

Add online and offline text translation to Android apps
Java
71
star
6

Text-Translation-API-V3-NodeJS

JavaScript
47
star
7

Text-Translation-API-V3-C-Sharp

C#
37
star
8

Translator-HumanParityData

Human evaluation results and translation output for the Translator Human Parity Data release
37
star
9

Text-Translation-API-V3-PHP

PHP
36
star
10

Text-Translation-API-V3-Flask-App-Tutorial

HTML
33
star
11

Text-Translation-API-V3-Java

Java
27
star
12

Text-Translation-API-App-V3-IOS

Swift
20
star
13

MSLT-Corpus

Microsoft Speech Language Translation (MSLT) Corpus
19
star
14

Text-Translation-API-V3-C-Sharp-Tutorial

C#
18
star
15

ToShipOrNotToShip

Python
17
star
16

GetAzureToken

Code Examples for getting a Microsoft Translator access token from the Azure Platform
C#
15
star
17

Text-Translation-Code-Samples

This repo contains code samples for Microsoft text translation.
C#
14
star
18

Text-Translation-API-V3-Go

Go
14
star
19

CustomTranslatorApiSamples

Custom Translator API (preview) Samples
JavaScript
11
star
20

Text-Translation-API-V3-Ruby

Ruby
7
star
21

MS-Comet

MS Comet release
6
star
22

GATE

GATE: A Challenge Set for Gender-Ambiguous Translation Examples
Python
4
star
23

CustomTranslatorSampleDatasets

Sample German English datasets for Custom Translator
3
star
24

CustomTranslator-API-CSharp

Custom Translator API code samples including access token generation
C#
3
star
25

DocumentTranslationService

C#
2
star
26

Document-Translation-Code-Samples

This repo provides code samples for Microsoft document translation.
1
star