Learning language and perception with a robot