inference with crf model