Coursera Data Science Capstone Project - Swiftkey Prediction Tool

Rob Reynolds, PhD
08 January 2017

Purpose

What is the App and what does it do?

  • Text prediction application
  • User inputs at least one word
  • App retrieves probable next words
  • App displays a word cloud of probable choices, and suggests the next word that will be typed
  • App also offers up to 5 more choices for the next word

Method

How does the app work?

  1. App draws on a corpus containg blog posts, twitter tweets, and news articles (all originally taken from the internet)
  2. The app tries to match up to three words at a time to its known word combinations
  3. If no match to three words, it tries to match the last two in the phrase; if no match to the last two it tries to match the very last word
  4. If no matches at all, the app returns a list of the most probable single words in the corpus
  5. If less than three words are entered: same rules as above as appropriate

Use of the App

How do I operate the App?

  1. User types a word or phrase into the text box and presses 'Submit'
  2. App shows the user what was entered, generates a word cloud, and offers next word choices
  3. User can change input or press the “Clear” button to start over

The App's Potential

A predictive algorithm for typing could have several uses:

  • Make cellular phone use easier
  • Help people with disabilities communicate better on personal computers
  • Aid in Optical Character Recognition conversion programs
  • Computer games and novelty electronics