nltk / nltk_book

NLTK Book
http://www.nltk.org/book
403 stars 143 forks source link

Chapter 2.1 Missing brackets p41 #251

Open ValdanCS opened 2 years ago

ValdanCS commented 2 years ago

Unable to run the below code due to missing brackets after print command.

print int(num_chars/num_words), int(num_words/num_sents), int(num_words/num_vocab), fileid

Correct version: print (int(num_chars/num_words), int(num_words/num_sents), int(num_words/num_vocab), fileid)