prepare the data for crf++