pattern = 'NP:{<NN|NNP|NNS|NNPS>+}'
c = nltk.RegexpParser(p)
t = c.parse(nltk.pos_tag(nltk.word_tokenize(
    'Apple Incorporated is the largest company')))
How to add compound words to the tagger in NLTK?