For this, we add two special features : previous state (label) and conjunction of previous label and current word to consider state transition.
a previous label can be represented as a feature function in our model as follows: It means that the target word is likely to be inside a term (I), when the word is "gene" and the previous label is "B".