case studyclassifying reddit posts meet the natural language toolkit python might not be the most execution efficient language on earthbut it has mature package for text mining and language processingthe natural language toolkit (nltknltk is collection of algorithmsfunctionsand annotated works that will guide you in taking your first steps in text mining and natural language processing nltk is also excellently documented on nltk org nltk ishowevernot often used for production-grade worklike other libraries such as scikit-learn installing nltk and its corpora install nltk with your favorite package installer in case you're using anacondait comes installed with the default anaconda setup otherwise you can go for "pipor "easy_installwhen this is done you still need to install the models and corpora included to have it be fully functional for thisrun the following python codeimport nltk nltk download(depending on your installation this will give you pop-up or more command-line options figure shows the pop-up box you get when issuing the nltk download(command you can download all the corpora if you likebut for this we'll only make use of "punktand "stopwordsthis download will be explicitly mentioned in the code that comes with this book figure choose all packages to fully complete the nltk installation