Tool to apply text error correction annotations in m2 format.
See the MaxMatch Scorer for details on file format.
- Python 3.6
- pipenv
pipenv install
To apply m2-format corrections, run:
pipenv run python correct.py foo.m2
where foo.m2 is your m2 file. This will print all sentences, with their
correction annotations applied, to stdout.
See LICENSE.
The code in parser.py is taken from the MaxMatch Scorer, which is GNU GPL v2.0 licensed.