Pitman–Yor processes can be stacked hierarchically to form Bayesian models.
A general modelling framework using hierarchical Pitman–Yor processes is proposed.
Efficient inference algorithm is made possible by modularising the hierarchy.
This framework is applied to Twitter for text and network modelling.