Sanjay Kumar
27-JAN-2019

The Sinny Apps https://sanjayk98.shinyapps.io/NextWord/
It uses N-Gram language modeling to predict next word \[ \begin{eqnarray} P(w_{a}) & = & \frac{C(w_{a})}{N}\\ P(w_{a}|w_{b}) & = & \frac{C(w_{a},w_{b})}{\sum_{w_{b}}C(w_{a},w_{b})}\\ P(w_{a}|w_{b}) & \sim & \frac{C(w_{a},w_{b})}{C(w_{b})}\\ Laplace correction\\ P(w_{a}) & = & \frac{C(w_{a})+\delta}{N+V*\delta}\\ \end{eqnarray} \] where N #words in trainingset, V- #words in vocubulary delta-Tuning parameter
We use recurrsive back-off algorithm to predict the next word