Modeling measurement error via nonparametric Bayesian belief nets