Generalized algorithms for constructing statistical language models | Synapse