Barbara Mastrandrea
April 23rd, 2020
The goal of this exercise is to create a Shiny app that accepts as input a sentence (multiple words) in a text box and generates a prediction of the next word.
The algorithm used is quite simple
It should be noted that the application created here is a small prototype, based on data, which although quite substantial, are however limited. It is therefore possible that you will not find any match with what has been entered. Also, in the case of very common words or phrases, the correlation plot can be somewhat crowded.
The application can be found here.