继续书本上的实验
#coding=utf-8
import nltk
from nltk.corpus import brown
news_text=brown.words(categories='news')
fdist=nltk.FreqDist([w.lower() for w in news_text])
modals1=['can', 'could', 'may','might','must','will']
modals2=['what','when','where','who','why']
for m in modals1:
print m + ':',fdist[m],
print '\n'
for m in modals2:
print m + ':',fdist[m],