Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best way of using google translation by Python [closed]

I am trying to translate large number of text files from English to other several languages. And we use Python in our project, we try to use Google translation service to translate them first then we will correct the mistakes manually.

I have come up with two ways to translate:

  1. Use Python Google translation API. Here: goslate 1.1.2: Python Package

  2. Try to program with the google translation page, that is, feed in the text that we want to translate, simulate the HTTP request and process the response. Google Translation

Is anyone have a better offer?

like image 851
lowitty Avatar asked Mar 23 '14 04:03

lowitty


People also ask

Can you close Google Translate?

Click on Settings. Type in Translate in the Search Field. Expand the Language option by clicking on the arrow. Turn off "Offer to translate pages that aren't in a language you read"

How do I translate a Google translator into python?

You can also translate text documents via Google Translate API. All you have to do is to read the text file in Python using the open method, read the text and pass it to the translate() method. You can also check whether or not the file is in "read" mode using the mode property: if f.

Is Googletrans python free?

Googletrans is a free and unlimited python library that implemented Google Translate API. This uses the Google Translate Ajax API to make calls to such methods as detect and translate.

What is the best way to use Google Translate?

Tap the microphone icon at the top of the screen and speak your word or phrase into the app. Google Translate then translates your words in the target language. Tap the Speaker icon to hear the translation. Another option is to tap the Transcribe icon and then start speaking.


Video Answer


1 Answers

I made my own google translate function for python ;) try it https://github.com/mouuff/Google-Translate-API

like image 68
Arnaud Aliès Avatar answered Sep 21 '22 20:09

Arnaud Aliès