A Gibbs sampler for the hierarchical Dirichlet process mixture model (HDPMM) when used with multinomial data.