Word Prediction

Image credit: Unsplash

This project uses n-grams generated from provided text to predict the next word of a given phrase. The text was sourced by SwiftKey and was taken from blogs, news sites, and twitter.

I chose to use the modified Kneser-Ney algorithm for interpolation which took some time to implement, but found creating a model which fit within the size limitations of the app to be an unexpected road bump.

The app allows you to type whatever you like, you then click ‘Predict’ and it predicts what the next word for your sentence may be.

Please note, this app is hosted on the free version of Shiny and thus may not be available if the amount of allowed monthly usage has been surpassed.

Dario Clarke
Dario Clarke
Energy Analyst & Aspiring Data Analyst

My interests include sciences, religion and learning how people think.