Text Prediction Shiny App Slides

Illya Bjazevic

10/11/2021

Algorithm

The app creates a table with many possible options and the probability of each option. We use machine learning to predict the next word. The training set is a Twitter data set that is part of the sbo library.

The user is asked to input a phrase. At the beginning no word is inside the text box, so our algorithm assumes 0 words, and predict the word number 1. When a word is written, the algorithm predicts the second word. And so on. There is no limit for the number of words that the user can write.

You can find my Shiny app on https://illyabjazevic.shinyapps.io/shinyapp/

Code

Example with 0 words

Example with 1 words