Hierarchical Dirichlet Model for Document Classification