add crf_train for different training algorithms.