A Bayesian nonparametric model for multi-label learning