Problem solved for ValueError in FeatureHasher and naive bayes.