Mining Massive Hierarchical Data Using a Scalable Probabilistic Graphical Model