Non-Uniform Stochastic Average Gradient Method for Training Conditional Random Fields