A Hierarchical Bayesian Model for Frame Representation