The labeling of each character considers both the previous character's features and the next character's features.
if the current character is the first character, its previous character is an empty character (which is used for segmenting sequences in CRF); if the current character is the second character, its next character is an empty character.