May 2020
Intermediate to advanced
404 pages
10h 52m
English
Create a new Jupyter notebook or a new Python script. We will now import the Google Cloud Translate API to our project.
from google.cloud import translate_v2 as translate
translate_client = translate.Client()
original = u'नमस्ते'
This creates a Unicode string containing the word Namaste in Hindi. Let's see what it converts to in English!
We call the API to translate the text into English using the following code:
translation = translate_client.translate(original, ...
Read now
Unlock full access