Bayesian Structured Representation Learning