A Collapsed Variational Bayesian Inference Algorithm for Latent Dirichlet Allocation