Predictive Text Modelling App with Shiny

Around the world, people are spending an increasing amount of time on their mobile devices for email, social networking, banking and a whole range of other activities. But typing on mobile devices can be a serious pain. SwiftKey, for example, builds a smart keyboard that makes it easier for people to type on their mobile devices. One cornerstone of their smart keyboard is predictive text models. When someone types:

I went to the

the keyboard presents three options for what the next word might be. For example, the three words might be gym, store, restaurant.

As part of my capstone project — with Swiftkey as the corporate partner —  for the Data Science Specialization offered by John Hopkins University through Coursera, I have analyzed a large corpus of text documents to discover the structure in the data and how words are put together to build and sample from a predictive text model. This brings you a predictive text product hosted on shinyapps.io:

The app takes as input a phrase (multiple words), one clicks submit, and it predicts the next word.

Click here to check out the app

For more information on how the app works under the hood, please see:

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s