Python – can I detect unicode string language code?
I’m faced with a situation where I’m reading a string of text and I need to detect the language code (en, de, fr, es, etc).
I’m faced with a situation where I’m reading a string of text and I need to detect the language code (en, de, fr, es, etc).
How do I detect what language a text is written in using NLTK?