A Perceptron model for sequence labeling in NLP