Introduction - If you have any usage issues, please Google them yourself
In the fields of computational linguistics and probability, an n-gram is a contiguous sequence of n items a given sequence of text or speech. The items can be phonemes, syllables, letters, words or base pairs according to the application. The n-grams typically are collected a text or speech corpus. When the items are words, n-grams may also be called shingles.