POS tagger trained using a discriminative model and the perceptron algorithm