Todd Rimes
July 29, 2018
This text prediction model and demo app were built in R. Provided data was processed to create a demo app that takes input text from a user and predicts “candidate” words for the next word, given the last few words typed by the user.
In the demo UI, text entered is trimmed and parsed to its last three or fewer words. Then the model is “queried” to find 4-word phrases that begin with the last three words entered.
Performance ranges from 7 milliseconds (4-word match) to 7 microseconds (no match), indicating that, the more iterative searches (from 4 words to 3 and so on), the longer the server response time.
Demo of it working.
Ideas for improvements and optimizations.