extracting word features using NLTK