A Consistent Regularization Approach for Structured Prediction
discriminative training methods for hidden markov models : theory and experiments with perceptron algorithms .