updates re chapter compatibility with NLTK 3