nouns = set()
for sentence in my_corpus.sents():
    for word, pos in nltk.pos_tag(sentence):
        if pos in ['NN', 'NNP']:
            nouns.add(word)
Getting a Large List of Nouns (or Adjectives) in Python with NLTK; or Python Mad Libs