preparing data for nltk operations