The perceptron part-of-speech tagger implements part-of-speech tagging using the averaged, structured perceptron algorithm. Some information about the implementation is available in this presentation. The implementation is based on the references in the final slide.
Step by step
Mostly things are as in Supervised tagger training except you need an MTX file (and optionally a TSX file) instead of a TSX file.
- Get an MTX file: Copy an MTX file into your language directory and optionally modify it (or start from scratch). See MTX format.
- Get a tagged corpus
- Train the tagger like so: `apertium-tagger [--skip-on-error] -xs [ITERATIONS] MODEL_FILE TAGGED_CORPUS UNTAGGED_CORPUS MTX_FILE` which will write the resulting model to MODEL_FILE. You can put this in a Makefile. Use --skip-on-error to discard sentences for which the TAGGED and UNTAGGED corpus don't match (this can often happen as a result of the tagged corpus getting out of sync with the morphology). A reasonable value for ITERATIONS is 10.
- Run the tagger like so: `apertium-tagger --tagger --perceptron MODEL_FILE`. You can put this in your modes.xml.