"""(ROOT (S (NP (NN Carnac) (DT the) (NN Magnificent)) (VP (VBD gave) (NP ((DT a) (NN talk))))))"""
Finding head of a noun phrase in NLTK and stanford parse according to the rules of finding head of a NP