Jean-Paul Courneya
29 May 2018
The goal of this final assignment was to develop a word prediction app.
if (phraseIsTrigram) {
score = matched4gramCount / input3gramCount
} else if (phraseIsBigram) {
score = 0.4 * matched3gramCount / input2gramCount
} else if (phraseIsUniGram) {
score = 0.4 * 0.4 * matched2gramCount / input1gramCount
}
githubRepo with scripts to build the app