crfs and perceptrons for structured prediction 1259739