Text Prediction Shiny App

In this project, an app was built to predict the next word based on the given input. We considered English Database for our convenience here.

The steps involved in arriving at the final app is shown below

  • Loading the data
  • Cleaning the data 
  1. Text mining the data
  2. Eliminate white spaces
  3. Convert to Lowercase
  4. Remove Punctuation
  5. Remove Numbers
  • Extracting the words based on the alphabets
  • Checking for unique words 
  • Designing a prediction function (this predicts words from largest word to smallest word)
  • Finally, Design an app that has a tab to enter a sentence and display n predicted words for the user to choose from.

Programming Language

R Programming

The Attempted Shiny App can be accessed at https://tejaswinrao.shinyapps.io/capstone/

Create your website for free! This website was made with Webnode. Create your own for free today! Get started