more scalable way to featurize, by first featurizing a sample for dictionary, only keeping top features