Learning how to label