On several occasions, @ellepannitto and I have felt the need to import the validator in external programs (similar to what @bguil does in Arborator-Grew) and/or to only use specific checks, non necessarily coinciding with the existing validation levels. Similarly, there are cases in which we want to perform additional checks, e.g. for treebank-specific MISC features, while still relying on the official validator for the remaining fields.
As far as we know, validate.py is not packaged as a library. We wonder if a modular version of the validator exists, and if not, if there is interest for such a version of it. If so, we would be willing to code it reusing the existing code and keeping the interface unchanged.
On several occasions, @ellepannitto and I have felt the need to import the validator in external programs (similar to what @bguil does in Arborator-Grew) and/or to only use specific checks, non necessarily coinciding with the existing validation levels. Similarly, there are cases in which we want to perform additional checks, e.g. for treebank-specific
MISCfeatures, while still relying on the official validator for the remaining fields.As far as we know, validate.py is not packaged as a library. We wonder if a modular version of the validator exists, and if not, if there is interest for such a version of it. If so, we would be willing to code it reusing the existing code and keeping the interface unchanged.