textblob
Windows で Python 2.7.10 をかなり長い間使用してきましたが、予期せず動作しなくなりました。2 つの独立した仮想マシンと OS X でテストすると、同じエラーが発生します。
ドキュメントからの簡単なスニペットのテスト:
from textblob import TextBlob
en_blob = TextBlob(u'Simple is better than complex.')
print(en_blob.translate(to='es'))
エラーが発生します:
File "test.py", line 3, in <module> print(en_blob.translate(to='es')) File "C:\Python27\lib\site-packages\textblob\blob.py", line 509, in translate from_lang=from_lang, to_lang=to)) File "C:\Python27\lib\site-packages\textblob\translate.py", line 45, in translate raise NotTranslated('Translation API returned the input string unchanged.') textblob.exceptions.NotTranslated: Translation API returned the input string unchanged.
このエラーをデバッグするにはどうすればよいですか?