Add perplexity estimation to LdaModel.