The anaforatools project provides utilities for working with Anafora annotations including:
anafora.validate
- checks Anafora XML files for syntactic and semantic errorsanafora.evaluate
- compares two sets of Anafora XML files in terms of precision, recall, etc.anafora.regex
- trains and applies simple regular expression models from Anafora XML filesanafora.copy_text
- copies text into Anafora directory structureanafora.labelstudio
- converts Anafora schemas and data files into Label Studio schemas and data files
For details on the command line interfaces to these modules, use the --help
argument. For example:
$ python -m anafora.validate --help
Requirements:
- Python 3.6 or later
- Python regex module