2024-08-05

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 ( 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.

Purpose

|The purpose of the project is to create an application that predicts words using a natural language model. Similar to SwiftKey which is a virtual keyboard application for mobile devices that uses artificial intelligence to predict the next word the user intends to type, the Shiny app will accept as input word/ text and will try to suggest the next word

What is based on?

|The model that will be used to develop this application is N-gram model. The n-gram model is a statistical language model that is based on the probability of observing a sequence of words in a text. An n-gram is a contiguous sequence of n items (usually words) from a given text. The basic n-gram model assumes that the probability of observing a word in a sequence depends only on the previous (n-1) words.

Steps: Download and clean the data Build N-grams Create the Backoff algorithm Make the prediction

##How to use?

|Type any text in the input box below and press keyboard Enter Use the scroll bar to select the numbers of predicted words See the predicted words The link for Shiny app: https://banerjeereethika0616.shinyapps.io/MilestoneWeb/

Thank you for reading