Google Translation API and Python Part 1 - Service Account, Install Library, Translate Text

preview_player
Показать описание
Your donation will support me to continue to make more tutorial videos!

Almost majority of people who have used Google before have used Google Translation at some point. The Google Translation API is part of the Google AI & Machine Learning Products. Thankfully, the Translation API is super easy to set up and super easy to use.

In this tutorial series we will learn how to use the Google Translation API in Python. The series is breaking down into 3 videos. The first video will cover how to create a Service Account, installing Google Cloud Python library, and create your first script to use the Google Translation API to translate text. The second video will cover how to list all the supported languages used by Google Translation. And the 3rd video will teach you how to detect the input text language.

Part 2: List Supported Languages Used By Translation API

Part 3: Detect Input Language

Python Code

Visit my website
Рекомендации по теме
Комментарии
Автор

Google has updated the translate library. When you import translate library, instead of from google.cloud import translate, you want to use from google.cloud import translate_v2 instead.

jiejenn
Автор

Appreciated - this helped me connect and use the api.

dcjpeec
Автор

Good tutorial, but I'm wondering how to set up this API to work with a CAT tool. Any info on that?

emalghamsharick
Автор

Thank you very much, this was very helpfu.

sisuacha
Автор

Is it possible to get the examples and definition of the word in the native language if you use this package? For example, if I translate the word "luego" from spanish I get "soon" as a translation, but I also get an example: "primero comieron y luego tomaron café." and the word definition in spanish: "Más tarde en el tiempo, inmediatamente después o en un momento no muy lejano; puede referirse tanto al tiempo del cual se habla como al momento en el que se habla o se escribe".

My point is: I want to construct a database with the original word, the translation, the example and the definition too. Is it possible? I did it using selenium, but it takes too much time.

programacaosimples
Автор

How we can translate excel file-many rows?

XYZhmmc
Автор

what details are there in the credential environment window. can u share the sample

souravgames
Автор

How do you add a given language to translate from, instead of letting Google to detect the language himself?

DeTester
Автор

How do I make a million request at once ...say to convert Bigquery table column data ...some million rows ....want to translate fast ???

kumarroshan
Автор

In my case here is no google package it gives an error: from google.cloud import translate_v2 ModuleNotFoundError: No module named 'google'.
How I can solve it?

ramunas_
Автор

Can I use multiple target_language variables?? I want to translate 2 languages at once. Is it possible?

CatWAVE-qqgs
Автор

error: 503 POST *"link"* The service is unavailable at this time.

kyozuperso
Автор

what is the parent argurment for ?
TypeError: translate_text() missing 1 required positional argument: 'parent'

WhisperingEchoClips
Автор

If you push this to a repository on github, what files should be listed in the gitignore file?

network
Автор

pip install googletrans: OSError: [Errno 9] Bad file descriptor please help me

nurlan
Автор

How to get clear output? Only my translated text

jesuschristophe
Автор

AttributeError: module 'google.cloud.translate' has no attribute 'Client'

batanijoyboy
Автор

I'm confused about the pricing. Is it totally free?

bruce
Автор

it says there is no module named google

gloomy_area
Автор

AssertionError: ``credentials_json`` must be ``None`` or a valid JSON string


This kind of error is coming

sksuman
welcome to shbcf.ru