structured perceptron revision