[Google Translate API-re translit text in english]

59 views
Skip to first unread message

Ajit Harichandra Rupnawar

unread,
Feb 6, 2017, 9:16:08 AM2/6/17
to Google Cloud Translation API
Hello Guys,

I`m try to do translate any word to any language and that result should come revers translate.Please check attached file.(e.g  In English potato = आलू  and i want आलू in English like aaloo). Please help for this. There is any parameter for this. 



Screenshot from 2017-02-06 14:25:56.png

Jordan (Cloud Platform Support)

unread,
Feb 7, 2017, 3:21:26 PM2/7/17
to Google Cloud Translation API
If you use the Translation API Client Library the original input value is returned within the translated response. Naturally, if you are running the API call on a 'source' string, you already have the original reverted translation. 

In the REST API example URL you show a translation from English to English which will of course produce a warning as this is not a valid translation language pair.  By changing the 'target' parameter from 'en' to 'hi' in the URL, it will produce the source English text into Hindi. 

Note that you are using the Standard Edition of the API instead of the Premium Edition where the translation can use the newer 'nmt' model, and will return the 'detectedSourceLanguage', which you can use to set as the 'target' language in another REST call to get the reverse translation you want. 
Reply all
Reply to author
Forward
0 new messages