In fact, no learning corpus can make it possible to observe all the sequences of possible words.
the basic idea of n-gram models consists in considering only the sequences of words of length n, i. e the calculation is approached by a limited history consisting of the n-1 preceding words.