Julie GW
April 20, 2015
Task: …Create a Shiny App to predict the next word given a phrase or partial sentence
Balance Speed and Accuracy
Intuitive, Inviting & Upbeat
Family Friendly (no profanity allowed!)
Markov Models (n-grams) are the basis for this algorithm
Smoothing techniques balanced infreqent terms for data size
The algorithm embedded in server.R has 3 parts:
Load preprocessed, cleaned, ordered and other-wise minimalized data, including a vocabulary list.
The prediction algorithm as a function
Server interaction which calls the input and output and makes it reactive
Click on the link below to go to the app. Type a phrase or partial sentence into the “Text Input” box and hit the “Predict” button. Your phrase with the next word will appear in the “Prediction” box below. Note that you only have to type in one word to get a prediction…. link