Structure Regularization for Structured Prediction