Notes from class

We walked through the first couple steps in analyzing text, according to John Laudun, in class today. Here are the commands Carlos and I used in iTerm:

git clone https://github.com/libbyh/upst
cd upst
subl settings_example.cfg
conda create --name upst python=2.7 anaconda nltk Cython Pillow numpy scikit-learn
source activate upst

python stats.py
python words.py > ash-words.txt
python concordance.py -w think

We identified a few problems with the UPST code in class, and I have fixed a few of them. It now uses Python 3.5, correctly counts chapters, and displays dispersion graphs.

More Resources

The research assistants in my lab have written intros to some of the tools you saw me use in class today:

Lucky for you, they are also in the class. So, you can ask them next time you see them.

If you’re interested in learning more Python, I recommend Codecademy. Or, you could ask the guys taking CS 331. They are learning it right now.