- A production-style Shiny text prediction app (
shiny/app.R). - Input: a short phrase (2+ words).
Output: predicted next word + top suggestions + confidence bar. - Two interchangeable model backends:
- N-gram backend: optimized trigram Stupid Backoff model.
- Class backend: lightweight class transition model.
- Interactive controls:
- suggestion count
- backend selection
- common-word penalty tuning for n-gram predictions.
# From project root:
# shiny::runApp("shiny")