3 ms·
btw, you don't need Prediction API to detect a language. One could use Translate API [1]: >>> detect_language_v2("Tous pour un, un pour tous, c'est notre dev
by d0mine 16y ago
btw, you don't need Prediction API to detect a language. One could use Translate API [1]:
>>> detect_language_v2("Tous pour un, un pour tous, c'est notre devise", open('api_key.txt').read().rstrip())
[u'fr']
[1]: http://stackoverflow.com/questions/4545977/python-can-i-detect-unicode-string-language-code/4546813#4546813 http://stackoverflow.com/questions/4545977/python-can-i-dete...