added keep_features property to ngramclassifier