 Maximum entropy language models encode the relationship between a word and the n-gram history using feature functions.The equation is 

where formula_15 is the partition function, formula_16 is the parameter vector, and formula_17 is the feature function.In the simplest case, the feature function is just an indicator of the presence of a certain n-gram.