From 94c24cf9729ae36422c4b68f36272eee86e925c5 Mon Sep 17 00:00:00 2001 From: Arild Date: Tue, 8 Nov 2016 13:10:13 +0100 Subject: [PATCH] Update ch02.rst --- book/ch02.rst | 1 + 1 file changed, 1 insertion(+) 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)