Presentation

Usama Fouad
March 11 2020

Intro duction

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:

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

  2. A slide deck consisting of no more than 5 slides created with R Studio Presenter (https://support.rstudio.com/hc/en-us/articles/200486468-Authoring-R-Presentations) pitching your algorithm and app as if you were presenting to your boss or an investor.

My shiny app: https://usamaeltmsah.shinyapps.io/FinalProject/

Project Steps

  • Importing Libraries
library(shiny)
library(tm)
library(dplyr)
  • Cleaning the text.

  • Make Prediction for the comming word.

  • Project the predicted word.

Algoritm

  • N-gram model used ( from 1 to 4 n-gram )

  • If no match found in the 4 n-grams, the algorimth indicates that sample is very small.

How it works

  • User enters a sentence into the input field.

  • The app then checks the predicted word algoritm.

  • The next word will be predicted.

  • This prediction is based from longerst to shortest N-gram (4, 3, 2, or 1).

  • Projection for the predicted word.

Thank You