Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions book/ch02.rst
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ Let's compare genres in their usage of modal verbs. The first step
is to produce the counts for a particular genre. Remember to
``import nltk`` before doing the following:

>>> import nltk
>>> from nltk.corpus import brown
>>> news_text = brown.words(categories='news')
>>> fdist = nltk.FreqDist(w.lower() for w in news_text)
Expand Down