Generalized Language Modeling toolkit