Data Science Capstone (Week 7) Shiny app to project the next word.
The projected word:
2023-06-15
Data Science Capstone (Week 7) Shiny app to project the next word.
The goal of this exercise is to create a product to highlight the prediction algorithm that you have built and to provide an interface that can be accessed by others. For this project you must submit:
A Shiny app that takes as input a phrase (multiple words) in a text box input and outputs a prediction of the next word.
## Loading required package: NLP
During the development of this prediction Shiny App (https://qiuqingw.shinyapps.io/finalshinyapp/), we firstly created three matrixs containing two-word, three-word and four-word patterns. And then we wrote a new function “projectnextword”, which is used to predict the most frequent word after your input. The related R-codes are listed here (https://github.com/qiuqingw/dscw7_shinyapp/blob/main/app.R).
Thank you for your time and review!