2/9/2021

Summary and model

As part of the Capstone project we are asked to pitch our app for text prediction

The project was to construct a text prediction app that uses data from texts, blogs and news sources. Among the challenges were:

  • Optimize the prediction power of the app while recognizing the value of speed
  • Making an attractive front end with instructions

The model including downloading data, cleaning and sampling the data, assembling data into an N-Gram database through a corpus, a predictive front end to collect input, a backend built around a stupid back-off model, with results shown in the front end.

Instructions and Successes

Some simple phrases are predicted very well … User enters “Happy”, presses the predict button and the system predicts “birthday” The user can then add “New” to the phrase and the system will then predict the next word as “year”, this without having to resubmit the data using the button, demonstrating the interactive nature of the app.

The app is responsive and fairly user friendly.

Remaining challenges

The application could use the following work to make it beneficial as a backend for a commercial application:

  1. Further optimization of speed to accomodate a larger dataset than the existing 7500 records.
  2. Further optimization of the N-gram database to increase the strength of the prediction algorithm.
  3. Improve the front end to show off capabilities such as timers for search, more attractive colors, longer phrases or multiple predictors.

Deployed version

The app was built within a matter of weeks in order to demonstrate capability.

The app can be used from this link … https://bentafoyadatascience.shinyapps.io/FinalCapstone/

Additional funding could make for a stronger submission. Extensions of the app could be helpful for prediction of song lyrics, or poetry stanzas, or political speeches … all given the proper data.