CRF considers the correlations between tags in neighborhoods and score the whole sequence of tags.
we use a linear-chain CRF and score the tag sequence as conditional probability: where Y is the set of all possible tag sequences and s(r, y)) = n i (A y i−1 ,y i + P i,y i ) is the score function.