This app predicts the next word based on user input using n-gram language models. Inspired by predictive keyboards like SwiftKey.
- Trained on 5% sample from blogs, news, and Twitter (English corpus)
- Uses unigram, bigram, trigram frequency
- Algorithm: Stupid Backoff
- Built with
tidytext,dplyr,shiny
Prediction logic:
- Try trigram
- Backoff to bigram
- Backoff to unigram