Learn practical skills, build real-world projects, and advance your career
import nltk
#nltk.download()
from nltk.corpus import brown
print(brown.categories())
['adventure', 'belles_lettres', 'editorial', 'fiction', 'government', 'hobbies', 'humor', 'learned', 'lore', 'mystery', 'news', 'religion', 'reviews', 'romance', 'science_fiction']
data=brown.sents(categories='fiction')