This page contains the code examples from the Elements on text analysis in Python for social scientists. The first one is on Discovery and Exploration the second one on Classification and Prediction.
dirkhovy/text_analysis_for_social_science
Code for the CUP Elements on text analysis in Python for social scientists
Jupyter Notebook