calc_perplexity always returns 0. Probably underflow.