diff --git a/book/ch02.rst b/book/ch02.rst index 4e22f4ce..ec75df0a 100755 --- a/book/ch02.rst +++ b/book/ch02.rst @@ -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)