Roy Wang
July 14th, 2016
The goal of this project is to create a product to highlight the prediction algorithm. We developed a Shiny app that takes as input a phrase (multiple words) in a text box input and outputs a prediction of the next word. Here is the instruction of this project:
Algorithm used to make the prediction
Instructions of the APP
Tools and resources
The main prediction algorithm of this App is called , n-grams.An n-gram looks at the last n words to predict the next word.The working process as below:
The UI of the APP includes 3 parts:
Phase input: Enter text into the area
Display the input words
Prediction: it will display the next word of the inputs
The SwiftKey Input Prediction is hosted on shinyapps.io: https://itexpertsh.shinyapps.io/SwiftKey_Predication/
The training dataset can be downloaded from: https://d396qusza40orc.cloudfront.net/dsscapstone/dataset/Coursera-SwiftKey.zip
The R packages which used for this APP include:tm,shiny,ggplot2 and markdown