Mohamed Chenini
2018-06-13
This presentation is a project which is part of the Coursera Data Science Specialization course: Data Science Capstone.
It consists of the following:
The Shiny application is composed by three R files
ui.R that control the USER interface
server.R that get input (from ui.R) and makes a call to the ngram.R function.w
ngram.R function that determines which ngram function to use based on the number of words entered, in order to predict the next word.
The N-Grams Data frame files were created in the Milestone Project of this course are loaded first and they are:
The “next word prediction” algorithm works like this:
The application can be accessed on the shinyapps.io website at Next Word Predict