using nltk functions. deleted custom code.