crf model for 2-1 and 3-1 model