Text prediction is such a ubiquitous technology that most virtual keyboards ship with a prediction model built right into their user interface, yet the inner workings of these models are rarely explained intuitively. The app presented here attempts to do so, demystifying the backend details used to generate text predictions, while competing on:
- Memory consumption. The memory footprint of the prediction model can be adjusted by the end user, from over 500 MB to just 200, enabling the app to function on a wide variety of devices.
- Execution Time. The fastest models render results near real-time, thanks to a fast Radix-Trie implementation.
- Accuracy. The most sophisticated models carry up to 30% top-3 accuracy.