ngram model with Laplace smoothing