Accurate estimation of conditional categorical probability distributions using Hierarchical Dirichlet Processes