Leandro Meili
2017-05-27
Word Prediction App
This word prediction app gives the user the next word of a phrase
It uses an algorithm (Stupid Backoff) that checks the existance of n-grams (1 to 5) and gives a score based on the number of times that n-gram was seen.
The app returns the words with the top 5 scores
Stupid Backoff Algorithm
Reference: link
The main steps to develop this app were:
Load and clean the data
Extract the n-grams (1 to 5)
Write the stupid backoff algorithm
Design and Deploy the app on Shiny
link: Word Prediction App
This is the app interface.
The user input the text and the app automatically run the score for the next word
The plot shows the top 5 predictions with its respective scores
During this capstone project a lot of issues appeared.