Caroline Zimmerman
Dec 21, 2016
This simple Next Word Prediction app invites the user to enter a word or phrase into a text box, click the “Predict Next Word” button, and returns up to five possibilities for the next word, ranked in order of likelihood.
The algorithm behind the app is a probabilistic model based on a large body of English text, available for download here. The steps for building the algorithm are:
A simple probablity model overestimates the true probability of an n-gram. The most effective adjustment method discovered to date is Modified Kneser-Ney Smoothing.
Resources for understanding the formula: