So, I built a simple n-gram language model based on the documentation here: https://www.nltk.org/api/nltk.lm.html
But I am a little confused by the score that the language model is producing. Please see the snapshot from the same document:
Below, I check the count of a bigram:
But when I use model.score("floral",["print"])
, I get 0
as the output. I am not able to understand why. Can someone please explain?