Entries from 2013-05-08 to 1 day

Installing NLTK (Mac)

I had another chance to set up NLTK in other Mac (Mountain Lion). Here I leave logs... Kens-Macbook-Air-2010:~ ken$ easy_install pip Searching for pip Best match: pip 1.3.1 Processing pip-1.3.1-py2.7.egg pip 1.3.1 is already the active ver…

Exercise: Chapter 2 (8-11)

8. >>> names = nltk.corpus.names >>> names.fileids() ['female.txt', 'male.txt'] >>> cfd = nltk.ConditionalFreqDist( ... (fileid, name[0]) ... for fileid in names.fileids() ... for name in names.words(fileid)) >>> cfd.plot() There are more …