Generalized Maximum Entropy for Supervised Classification