Translate Hindi To English Using Python
It has two powerful methods detect and translate which uses google translate ajax api.
Translate hindi to english using python. Based on the given number the translator chooses the right plural form. Language you want to translate provider mymemory. The first method is straight forward.
The cfg is not for using as a python module. First we need to create translator class object. It provides translation for major languages.
Apart from translation it supports language detection batch translation dictionary lookup and more. Before you can work with the google translate api in python you will have to install it. This uses the google translate ajax api to make calls to such methods as detect and translate.
It provids google youdao baidu iciba translation service. Otherwise it will use there are count. We will use the goslate module to translate.
Translation is a python translation package based on website service. There are various apis and modules for this we ll use the google translate api. Pip install translate below is an example of translating a simple sentence from english to german.
The python package which helps us do this is called translate. Or run the command line and follow the steps. We can download it from here and put googletrans directory at the python install path in lib directory.