Camphr consists of several subpackages in ./packages/ directory:
- camphr: Core Camphr package, including tokenizers and some basic interfaces (e.g.
DocProto
) - camphr_transformers: Huggingface Transformers integration
See each package directory for details.
Camphr uses poetry package manager.
$ git clone https://github.com/PKSHATechnology-Research/camphr
# test in container
# testing 'camphr' package in python3.8 environment with Dockerfile.base
$ python test_docker.py 3.8 camphr base
See each package directory for details.
Publishing packages to PYPI is done automatically by specific git tags.
pip install pyversionup
(https://github.com/tamuhey/pyversionup)cd packages/$PKG_TO_PUBLISH
: move to the package directory you want to publishversionup $NEW_VERSION
: modify version stringsgit push --tags
: push tags to GitHub, which fires the GitHub Action
See .github/workflows/main.yml
for details.