import nltk sections = nltk.corpus.brown.items print "All sections in Brown corpus are:", sections for section in sections: sentences = nltk.corpus.brown.sents(section) print "%s: %s..." % (section, ' '.join(sentences[0][:10]))