Discriminative classification with generative features: bridging Naive Bayes and logistic regression