Bigram Example
The Berkeley Restaurant Project is a defunct experiment in designing a speech recognition system.
| I | want | to | eat | chinese | food | lunch | spend | |
|---|---|---|---|---|---|---|---|---|
| I | 5 | 827 | 0 | 9 | 0 | 0 | 0 | 2 |
| want | 2 | 0 | 608 | 1 | 6 | 6 | 5 | 1 |
| to | 2 | 0 | 4 | 686 | 2 | 0 | 6 | 211 |
| eat | 0 | 0 | 2 | 0 | 16 | 2 | 42 | 0 |
| chinese | 1 | 0 | 0 | 0 | 0 | 82 | 1 | 0 |
| food | 15 | 0 | 15 | 0 | 1 | 4 | 0 | 0 |
| lunch | 2 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |
| spend | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 |
| I | want | to | eat | chinese | food | lunch | spend |
|---|---|---|---|---|---|---|---|
| 2533 | 927 | 2417 | 746 | 158 | 1093 | 3431 | 278 |
| I | want | to | eat | chinese | food | lunch | spend | ...Other words... | Total | |
|---|---|---|---|---|---|---|---|---|---|---|
| I | 5/2533 | 827/2533 | 0/2533 | 9/2533 | 0/2533 | 0/2533 | 0/2533 | 2/2533 | ... | 1 |
| want | 2/927 | 0/927 | 608/927 | 1/927 | 6/927 | 6/927 | 5/927 | 1/927 | ... | 1 |
| to | 2/2417 | 0/2417 | 4/2417 | 686/2417 | 2/2417 | 0/2417 | 6/2417 | 211/2417 | ... | 1 |
| eat | 0/746 | 0/746 | 2/746 | 0/746 | 16/746 | 2/746 | 42/746 | 0/746 | ... | 1 |
| chinese | 1/158 | 0/158 | 0/158 | 0/158 | 0/158 | 82/158 | 1/158 | 0/158 | ... | 1 |
| food | 15/1093 | 0/1093 | 15/1093 | 0/1093 | 1/1093 | 4/1093 | 0/1093 | 0/1093 | ... | 1 |
| lunch | 2/3431 | 0/3431 | 0/3431 | 0/3431 | 0/3431 | 1/3431 | 0/3431 | 0/3431 | ... | 1 |
| spend | 1/278 | 0/278 | 1/278 | 0/278 | 0/278 | 0/278 | 0/278 | 0/278 | ... | 1 |
| : Other words : |
: | : | : | : | : | : | : | : | ... | : |
| proportion of time each word appears second in all bigrams sums up to ⇒ | 1 | |||||||||