cltl / NAF-4-Development

Apache License 2.0
2 stars 1 forks source link

NAF version 4 development

NAF (NLP Annotation Format) is an XML format for annotating text documents. Different layers of annotation (tokenization, POS tagging, etc.) are represented as standalone annotations in a same document, while information about the models or linguistic processors used to create these annotations are recorded in the document header, together with metadata about the document. See example files in ./examples.

NAF was originally developed as part of the Newsreader project. Documentation for NAF until version 3.1 is hosted in newsreader/NAF.

This repository presents current NAF development.

Version overview

The DTD of each version can be found in ./resources/dtd, version changes are documented in ./doc and Changelog.md.

The files under ./examples can be validated with the scripts ./scripts/validate_against_dtd.py (python 3.6+) and ./scripts/tests/. You will need to install lxml and pytest for that:

pip install -r requirements.txt

To validate all examples:

pytest scripts/tests

License

This project is licensed under the Apache 2.0 License - see the LICENSE.md file for details