Note that the only way an MRF differs from a conditional random field (CRF) (Lafferty et al., 2001) is that the partition function is no longer observation dependent; we are modeling the joint probability of x and y instead of y given x.
learning an MRF is slightly harder than learning a CRF; we discuss this issue in section 4.4.