Skip to content

Instantly share code, notes, and snippets.

@kushalchauhan98
Created August 2, 2018 14:07
Show Gist options
  • Save kushalchauhan98/4864139c0a681e7c249159ff35a6bf9f to your computer and use it in GitHub Desktop.
Save kushalchauhan98/4864139c0a681e7c249159ff35a6bf9f to your computer and use it in GitHub Desktop.
Detect Language
from langdetect import detect
lang = detect(cleaned_email) # lang = 'en' for an English email
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment