Daigo Tanaka (@DaigoTanaka)
April 21, 2015
The first 2 inputs “The Obama” may be followed by the word “administration”
…It would save 14 keystrokes if we could select the word instead of typing.
We can suggest such word by machine-learning from the texts from news, blogs, and Twitters.
Try the demo by clicking here!
\[ S(w_{i}|w_{i-(n-1)},...,w_{i-1}) = 0.4^{4-n}\frac{count(w_{i-(n-1)},...,w_{i-1}, w_{i})}{count(w_{i-(n-1)},...,w_{i-1})} \]
The distribution of n-gram frequency. The count is in log(10) scale