finding the rare words in the training data