Caroline Zimmerman
Dec 21, 2016
This simple Predict Next Word app invites the user to enter a word or phrase into a text box, click the “Predict Next Word” button, and returns the most likely next word, based on an advanced probabilistic model.
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, which was used in the algorithm.
Resources for understanding the formula: