Objective: development of a text prediction model in Shiny app. The app predicts the next word in a sentence based on previous words provided by user.
The app can be found here
A stupid back-off method was combined with the n-gram model for the prediction model:
Various optimizations such as cut-offs in frequencies are performed to balance dataset sizes, speed and performance.