wellner/jcarafe — pull request #9 by antonyscerri (2012-10-08 14:07:49+00:00)
Title: Added "--strip" option to remove existing 'tags' from input files, addresses #8

The "--strip" option will ignore outputting any markup in the text formatted files that matches with supplied tagset information. So you can use the same tagset as used during testing to ignore any in the input files, so you will only be left with those generated from the decoding process. This prevents getting duplicated and/or overlapping tags in the text output, which then allows for simple side-by-side comparison of the input and output to compare matching tags.

This patch does not preserve any attributes of elements not used in the tag/tagset specifications the entire element with its attributes is stripped is it matches the tagset.

Note -this uses the tag and tagset options arguments when running the process. I did not check whether this information is encoded as part of the model file which would remove the need to supply them during decoding.