Structure Regularization for Structured Prediction: Theories and Experiments