perceptrons and crfs in structured prediction lesson 34 2008535