A method and apparatus are provided for augmenting a language model with a
class entity dictionary based on corrections made by a user. Under the
method and apparatus, a user corrects an output that is based in part on
the language model by replacing an output segment with a correct segment.
The correct segment is added to a class of segments in the class entity
dictionary and a probability of the correct segment given the class is
estimated based on an n-gram probability associated with the output
segment and an n-gram probability associated with the class. This
estimated probability is then used to generate further outputs.