📖
Bigram Autocomplete
Python73 lines· A simple word-autocomplete tool. It builds bigram (word-pair) frequencies from a training corpus you type in, then predicts the next words followin…
Original project by @HridayAg0102 — view source on GitHubReady when you are
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 following a starting word.
How to run
python bigram_autocomplete.py
Dependencies
Standard library only (uses re).
Pyodide-runnable
Yes - it is a pure-stdlib console program using only re and input()/print().
bigram-autocomplete.py· Python 3.x
57 linesConsole· terminal