MAP inference in Large Factor Graphs with Reinforcement Learning
discriminative training methods for hidden markov models : theory and experiments with perceptron algorithms .