use nltk.classify.apply_features for memory efficiency