A Planning Framework for Adaptive Labeling