Skip to content

See how letters' probabilities of following a given string entry change as words are entered.

License

Notifications You must be signed in to change notification settings

jake-mason/probability-keyboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#probability_keyboard

An application of a Variable-order Markov Chain Letter Prediction, this app displays a keyboard "heatmap" which shows the likeliest characters to follow a dynamic string entry.

Running procEntryMap() from the simplified_script module allows you to enter a word, letter by letter, and see how the most likely next letter changes as more letters are added to the string. A keyboard heatmap with these probabilities pops up onscreen after each letter is added.

Dependencies:

  • Python Imaging Library (PIL): Image, ImageDraw, ImageFont
  • Numpy

Difference between simplified_script and all_functions modules?

The simplified_script module provides all necessary components to display the output below, which is really what this app is about.

The all_functions module contains a variety of functions, allowing the user to explore relationships between letters at a more granular level. This script is an extension of the simplified_script, and allows the user to see where some of the structures in simplified_script came from.

An example

As a demonstration, here's the output from the first few letters of "orange." At each step of the process, the program calculates each letter's probability of occurring after the full string. So, a user might wonder how likely it is that an "n" follows "ora". This progression is observed below:

  • First, enter "o"; the full string is now "o". "o"

  • Next, enter "r"; the full string is now "or". "or"

  • Finally - to end this demonstration - enter "a"; the full string is now "ora". "ora"

About

See how letters' probabilities of following a given string entry change as words are entered.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages