Bigram
From Wikipedia, the free encyclopedia
Bigrams are groups of two written letters, two syllables, or two words, and are very commonly used as the basis for simple statistical analysis of text; one of the most successful language models for speech recognition (Collins, 1996). They are a special case of N-gram.
Gappy bigrams or skipping bigrams are word pairs which allow gaps (perhaps avoiding connecting words, or allowing some simulation of dependencies, as in a dependency grammar).
Head word bigrams are gappy bigrams with an explicit dependency relationship.
The term is also used in cryptography, where bigram frequency attacks have sometimes been used to attempt to solve cryptograms. See frequency analysis.
Bigrams help provide the conditional probability of a word given the preceding word, when Bayes' theorem is applied:
That is, the probability P() of a word Wn given the preceding word Wn − 1 is equal to the probability of their bigram, or the co-occurrence of the two words P(Wn − 1,Wn), divided by the probability of the preceding word.