My comment about discounting being responsible for the discrepancy between the logprob in the LM and the one reported by ngram is incorrect in hindsight, because all discounting had already been applied during generation of the LM, of course.