dm-annotations
dm-annotations
uses Poetry for dependency management. To install the library, first install Poetry if you haven't already. Then run:
poetry install dm-annotations
python src/dm_annotations/corpus.py
The converted JSONL can be used with Prodigy for further refinements.
python src/dm_annotations/corpus.py
python src/dm_annotations/network.py
Specifying a specific spaCy model can be done by setting the SPACY_MODEL
environment variable.
env SPACY_MODEL=ja_ginza_bert_base python src/dm_annotations/corpus.py
To contribute to dm-annotations, clone the repository and install the dependencies:
git clone https://github.com/your-repo/dm-annotations.git
cd dm-annotations
poetry install
Additionally, dm-annotations
uses devenv to specify all native dependencies using Nix.
If installed, entering the directory will automatically load the right libraries and set up the Poetry virtual environment.
Note that currently, as prodigy is a hard dependency, you will not be able to use this without commenting out the dependency in pyproject.toml
.
dm-annotations
uses pytest for testing. To run the tests, simply execute:
poetry run pytest
Additionally, many of the Python files under src contain a more extensive end-to-end test in their main.
This project is licensed under the MIT License.