N-gram language models – Part 2
Background In part 1 of my project, I built a unigram language model: it estimates the probability of each word in a text simply based on the fraction of times the word appears in that text. The text used to train the unigram model is the book “A Game of Thrones” by George R. R. Martin (called train). …