Parse labels.