Predict the Next Word

Hassan
15th December

The Challenge

Create an app which predicts the next word in a sentence Language Modeling

Data

Provided by SwiftKey and Coursera

  • Twitter –> 2360148 lines
  • Blogs –> 899288 lines
  • News –> 1010242 lines

Some Exploratory Data Analysis is present in the earlier report

Algorithm

  • Convert the Data in to bi and tri grams
  • Sort n-grams and choose the ones (10%) with highest frequency
  • Apply Hidden Markov Chains(HMM) in the sorted n-grams
  • Embed model in app for you all to use.

Solution

A fast and reliable text prediction App for you all to use and enjoy….

How to run the app?

library(shiny) runGitHub(“capstone”, “mrhash101”)