Albert Shuxiang Li
23 April 2016
OBJECTIVES
When an user input text, up to last 4 words will be used to predict the next word accroding to the frequencies of the underlying N-Grams.
Stupid Backoff Algorithm has been implemented as following formula:
\[ Total_{prob} = 1*Quintgrams_{prob} + 0.4*Quadgrams_{prob} \] \[ + 0.16*Trigrams_{prob} + 0.064*Bigrams_{prob} \]
Following reference has been used
My project on github