David Larue, david_m_larue@compuserve.com
August 16th, 2019
Objective: Create and Test a Word Prediction Algorithm deployed to shinyapps.io.
Usage:
This file:
def ins(y,v,ng,mp):
ind=v[0][0:ng]
if (ind in y and len(y[ind])<mp and v[1]>=3):
y[ind]=y[ind]+((v[0][ng],v[1]),)
| Database Kept Only frequencies this large | 3 |
|---|---|
| All 3 word ngrams from 4/5 of sample text | 78,922,609 |
| Number of correct predictions on first try | 12,417,704 |
| Percentage of first try correct predictions | 15.7% |
| Number of correct predictions with five tries | 22611598 |
| Percentage of correct predictions in first five | 28.% |