I need to classify words into their parts of speech. Like a verb, a noun, an adverb etc.. I used the
nltk.word_tokenize() #to identify word in a sentence nltk.
This answer may be off base, and in which case I'll delete it, as I don't have NLTK installed here to try it, but I think you can just do:
>>> sent3[2].node 'NE'
sent3[2][0] returns the first child of the tree, not the node itself
sent3[2][0]
Edit: I tried this when I got home, and it does indeed work.