Gregg Velatini
11/30/2017
Using devices such as smartphones, people are increasingly using text based interfaces to communicate with one another (texting).
Communicating via text, however, is riddled with challenges.
Messages can be exchanged with greater speed and accuracy if an individual's interaction with the keyboard is reduced. One way to reduce the number of keyboard inputs is to use so called “Predictive Text” (PT) algorithms.
Below is an example of the head and the tail of this file.
head(myFeatures,3)
feature count ngram tot_feat
1 the 92807 1 1849934
2 and 55040 1 1849934
3 to 53681 1 1849934
tail(myFeatures,3)
feature count ngram tot_feat
316924 rain_in_the 2 3 1760442
316925 the_little_girls 2 3 1760442
316926 the_shark_towel 2 3 1760442
The resulting data file is read in by the application when the application is launched.
The application searches the data file for word suggestions based do the MLE.
If two or more suggested words have the same likelihood, A tie-breaking algorithm is used.
The application generates a “Word Cloud” of the top 30 suggested words.
The application can be found here: https://gvelatini.shinyapps.io/predictivetext/
Please be patient, it's a little slow to load.
Notes: