Unlike a HMM which models the joint distribution of both the label sequence and the observation, a CRF is a discriminative model of the conditional distribution of the complete label sequence given the observation.
a first-order linear-chain CRF which assumes first-order Markov property is defined by the following equation: (1) where x is the observation and y is the label sequence.