This can be done by modifying the CRF's gold energy function, illustrated in the upper part of Figure 2c.
in this example, John is labeled as PER, so PER is the only possible correct tag at that position.