Phanindra Reddigari
1/18/2017
Analyze the Swiftkey text files (blogs, twitter, and news) and develop a simple Shiny UI for next word prediction in a free form phrase. The UI is designed to accept user input in a text box and upon user submission, predicts the next word in the phrase. Highlights of the Shiny App design are:
\[ P(w1 w2 w3 w4) = l1 * c(w1 w2 w 3w4) / c(w1 w2 w3) + l2 * c(w2 w3 w4) / c(w2 w3) \] \[ + l3 * c(w3 w4) / c(w3) + l4 * c(w4) / sumoffrequenciesofallUnigrams \]
\[ l1 * c("make me the happiest")/c("make me the") + l2 * c("me the happiest")/c("me the") \] \[ + l3 * c("the happiest")/c("the") + l4 * probability("happiest") \] \[ l1 * c("make me the most")/c("make me the") + l2 * c("me the most")/c("me the") \] \[ + l3 * c("the most")/c("the") + l4 * probility("most") \]