Translation not working - NotTranslated: Translation API returned the input string unchanged. #117
Comments
The problem is that this API has changed it's output format. See http://stackoverflow.com/questions/35420602/python-textblob-not-translating/35421116#35421116. |
Use this: Step (2) text = "Hello World" gs = goslate.Goslate() print(translatedText) |
can you please tell me how to apply this into a pandas dataframe ? |
You can do something like this:
|
Thanks you are the best, I'll try the code as soon I set on my computer. thanks a million |
it gave me error :
any comment on how to fix it ?! |
Basically, you only need to remove You can see more information here: https://textblob.readthedocs.io/en/dev/quickstart.html#translation-and-language-detection About the error i think this can help you: https://github.com/sloria/TextBlob/issues/171#issuecomment-354914127 |
i thought im the only one |
hi sir I'm getting this following error |
try: |
Thank you sir for your help.
Regards
Srikiran Boddupalli
…On Wed 16 Oct, 2019, 07:52 Wan Nur Syahirah, ***@***.***> wrote:
try:
blob.translate(from_lang = 'en', to = 'es')
except:
print ("Same translation so skipping")
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#117?email_source=notifications&email_token=AEFE56G3GTQVBIJPT5AFADLQOZ3GXA5CNFSM4B3KZDF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBKZXGA#issuecomment-542481304>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEFE56C2LK2WH5NLREU3NB3QOZ3GXANCNFSM4B3KZDFQ>
.
|
how Translate English texts database into Arabic textblob pytho? |
Hi,
The translation is not working.
thanks in advance,
In [1]: from textblob import TextBlob
In [2]: en_blob = TextBlob(u'Simple is better than complex.')
In [3]: en_blob.translate(to='es')
NotTranslated Traceback (most recent call last)
in ()
----> 1 en_blob.translate(to='es')
/usr/local/lib/python2.7/dist-packages/textblob-0.11.0-py2.7.egg/textblob/blob.pyc in translate(self, from_lang, to)
507 from_lang = self.translator.detect(self.string)
508 return self.class(self.translator.translate(self.raw,
--> 509 from_lang=from_lang, to_lang=to))
510
511 def detect_language(self):
/usr/local/lib/python2.7/dist-packages/textblob-0.11.0-py2.7.egg/textblob/translate.pyc in translate(self, source, from_lang, to_lang, host, type_)
43 return self.get_translation_from_json5(json5)
44 else:
---> 45 raise NotTranslated('Translation API returned the input string unchanged.')
46
47 def detect(self, source, host=None, type=None):
NotTranslated: Translation API returned the input string unchanged.
The text was updated successfully, but these errors were encountered: