Coursera JHU Data Science specialisation
Capstone Project A shiny application predicting next word based on previous words entered by the user. Idea based on Swiftkey keyboard for tablets and smartphones
Visit my app here
For questions email me at mkrous@gmail.com
User enters some words in a textfield and hits submit. The application returns the predicted next word
Created an extra column for each n-gram: Frequency of the (n-1)gram resulting if I remove the first word
example 3gram: “synthesis”, “of”, “names”, 2, 215
where 2 is: frequency for “synthesis”,“of”,“names”
and 215 is: sub-frequency for bigram “of”,“names”
Kept only n-grams where frequency >=2
Amongst n-grams with common the first (n-1) words, kept only the ones with max frequency (can be more than one in case of a tie)