Learning Abstract Concepts and Words from Perception Based on Bayesian Model Selection