What does a labeled example contain?
In Google's glossary a labeled example contains one or more features and a label [1]. The label is the answer part of the example, the value a supervised model is trained to predict [1]. An unlabeled example has the features but no label [1]. Take a house listing: floor area and number of rooms are features, the sale price is the label. The same listing without a price is an unlabeled example.
How does data get labeled?
IBM describes data labeling, also called annotation, as a preprocessing step in which people attach one or more labels to raw images, text or video [2]. In computer vision, labelers draw bounding boxes around objects; in natural language processing, they tag text for tasks such as sentiment analysis and entity recognition [2]. Those labels give the model its ground truth, both for training and for testing [2].
The work can be done in-house, crowdsourced, outsourced, automated with scripts or supplemented with synthetic data [2], and human judgment is usually combined with machine assistance [2].
Why is it expensive?
Labeled data costs more and takes longer to collect than unlabeled data [2]. Manual labeling is slow and prone to human error, so quality checks are essential [2]. A model trained on wrong labels learns the wrong thing, which IBM sums up as garbage in, garbage out [2].