Peer-graded Assignment: Final Project Submission

Kim Rosmus
05/06/2018

Introduction

The goal of this exercise is to create a product to highlight the prediction algorithm that you have built and to provide an interface that can be accessed by others. For this project you must submit:

  • A Shiny app that takes as input a phrase (multiple words) in a text box input and outputs a prediction of the next word.

  • A slide deck consisting of no more than 5 slides created with R Studio Presenter pitching your algorithm and app as if you were presenting to your boss or an investor.

Data

The data came from: https://d396qusza40orc.cloudfront.net/dsscapstone/dataset/Coursera-SwiftKey.zip

  • This zip file contains 4 folders.
  • Each folder is a different language.
  • In each folder are three files.
  • The files are data for blogs, news, twitter.

Prediction

To predict the next word, an N-Gram algorithm was created.

  • 2-Gram, 3-Gram, and 4-Gram were used.

Shiny App

The app can be found here: https://kimrosmus.shinyapps.io/Final_Project/

  • On the left pick either News Article Data or Twitter Data.
  • On the right type in the word or phrase minus the last word.
  • Click the Clean & Predict button
  • The Cleaned text phrase and the Predicted word next will then have an output.
  • To try again, click Clear.