Accelerated training of conditional random fields with stochastic gradient methods
discriminative training methods for hidden markov models : theory and experiments with perceptron algorithms .