Hi All,
I have recently started using Google cloud translate API with python. M having trouble converting this word in the Telugu language which is written in English "parishkaram chesamu". In general internet or mobile the application google translate which we use is giving correctly. But API is returning the same word again.
Google Cloud translate API:
Input text: parishkaram chesamu
Output text: parishkaram chesamu
parameters :
text ='''parishkaram chesamu'''
target = "en"
output = translate_client.translate(text)
print(output) -->
{'translatedText': 'parishkaram chesamu', 'detectedSourceLanguage': 'te', 'input': 'parishkaram chesamu'}
================================
Mobile or Internet google translate:
Input text : parishkaram chesamu
Output text: We have solved
Hi Aditya,
You are writing Telugu language in English "parishkaram chesamu" instead of "పరిష్కారం చేసాము"
Currently the Translate app has the "Spell check feature" that responds with both the "Did you mean" phrase identified and the corresponding translated result, as oppose to the Translation API.
The "did you mean" text comes from Google's spell check API (the same one that suggests alternative searches when using Google search). When you use the translate API directly you are skipping the spell checking, and that's why you don't get a translation.
There's already a feature request to have a spell check feature in the Translation API response.
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 |