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.