Roman Kislenok
2014-12-02
Predict what you type in next…
Identify current text type:
\[ \max_{type \in types} P(currentPhrase | type) \]
Identify what we should do:
currentPhrase == "The "), orcurrentPhrase == "The cur")Try to predict requested amount (\( N \)) of words using previous two known words:
\[ \max_{word_3 \in words}^N P(word_3 | type, word_1, word_2) \]
Sometimes if we have no two previous words or predicted (\( N_3 \)) less than \( N \) words:
\[ \max_{word_2 \in words}^{N-N_3} P(word_2 | type, word_1) \]
or even:
\[ \max_{word \in words}^{N-N_3-N_2} P(word | type) \]
Application available on shinyapps platform:
Application is fast (first load is slow due to limitations of shiny)
Responsive UI allow access from PC, Mac, iPhone and Android!
It can easily be scaled up (use more complicated dictionaries with 3 or more words, include rare combinations) or down (shorten dictionaries)
Tunning parameters (text type, amount of predictions, case sensitivity) allows more appropriate use