Things to do:
>>> import nltk >>> nltk <module 'nltk' from 'C:\python27\lib\site-packages\nltk\__init__.py'> >>>
Things to do to check you are following:
import numpy as np import matplotlib.pyplot as plt s = np.random.dirichlet((10, 5, 3), 20).transpose() plt.barh(range(20), s[0]) plt.barh(range(20), s[1], left=s[0], color='g') plt.barh(range(20), s[2], left=s[0]+s[1], color='r') plt.title("Lengths of Strings") plt.show()
How to install nltk with Python 2.7.