Basic example of parameter learning on a fully connected CRF.