author: Igor Grybek date: Prototype evaluation complete
Turn a short phrase into one suggested next word.
Audience: People writing short messages or other text.
Data: English blogs, news, and Twitter posts from the course SwiftKey corpus.
Prototype: A focused Shiny app takes a phrase and returns one continuation.
Design goal: Keep the interaction simple, respond quickly, and make fallback behavior clear.
The model uses a deterministic sample: every 200th line from each source, with every 10th selected line held out. It trained on 19,105 lines and evaluated on 2,127 held-out lines.
| Held-out source | Token-level top-1 accuracy |
|---|---|
| Blogs | 11.8% |
| News | 11.9% |
| 11.2% |
These are modest sampled prototype estimates, not production
benchmarks. The deployed Shiny app was tested in a browser: “I went
to the” → “house.” Five corpus examples and their outputs are
in model/smoke_test.csv.
The source, model, smoke tests, and sampled evaluation are included with this project archive.