Learning the pattern-based CRF for prediction of a protein local structure