Generalized Ewens–Pitman model for Bayesian clustering