Moved ngram functions to language_modelspackage