This is the project for the last course Developing Data Products as part of the Data Science Specialization in Coursera. This project consists of a shiny application which predicts the next word based on the given text input.
Date created: 2024-10-24
This is the project for the last course Developing Data Products as part of the Data Science Specialization in Coursera. This project consists of a shiny application which predicts the next word based on the given text input.
Let’s say the input text is “try that ice”. The algorithm will first look for quadrigrams starting with “try that ice”, trigrams starting with “that ice” and bigrams starting with “ice”. If in this case, the frequencies are:
The algorithm will select the “ice cream” bigram and thus the next word will be “cream”.
Just enter some text in the input text box and press the “Submit” button and the predicted word should appear.
Source code: https://github.com/aneesh-arch91/data_science_capstone-word_predictor
You can download the source code and run the application locally.
Shiny Application: https://adoval92.shinyapps.io/word_predictor/