crf inference