📖
Bigram Autocomplete
A simple word-autocomplete tool. It builds bigram (word-pair) frequencies from a training corpus you type in, then predicts the next words followin…
A simple word-autocomplete tool. It builds bigram (word-pair) frequencies from a training corpus you type in, then predicts the next words followin…
A simple word-autocomplete tool. It builds bigram (word-pair) frequencies from a training corpus you type in, then predicts the next words following a starting word.
Insert the training corpus here (can be multiline)the cat sat on the mat. the cat ate the rat.
insert a word: the
the cat sat on the mat
python bigram_autocomplete.py
Standard library only (uses re).