structured prediction and labeling