Automatic Labeling of Data for Transfer Learning