Ian Castiilo Rosales
08/23/2015
The text prediction has become an increasing challenge in everyday tasks and those that are not.
Here is a simple application for the prediction of a given word phrase, using the knowledge acquired through Data Science Specialization offered by Johns Hopkins University.
We will talk about:
The base of the algorithm is based in the Markov Property:
The prediction of the future is based on exactly n-moments of the past
Based in this Markov Model, you can think in predict the next word of “I live in New York”. The word with the highest chance given this word, will be the best prediction given a specific number of words, for example,
P( best word | I live in New York ) = P( best word | New York )
So, based in this concepts,
The application is based in Shiny (a web application framework for R), with a simple interface, basic analysis of the corpus and a detail explication of the model.
The use of the single word predictor is really easy, you only need wait a few seconds to the application charge and then, you can type a phrase…
Reactively, you can see a couple of word predictions of your phrase, highlighting the first (or the best) option for you.