See README.md for step-by-step details on installing the pii-codex package as an import.
Video Demo of package import and usage:
Note: This video has no sound, it just shows steps taken to install the package and use it in a file.
For those contributing or modifying the source, use the following to set up locally.
You'll need the Python (^3.9) and Poetry configured on your machine. Once those are configured, create a virtual environment and install dependencies.
python3.9 -m venv venv
. venv/bin/activate
pip install --upgrade pip
make install
Installing dependencies will vary by usage. For those in need of the PII-Codex integration of the MSFT Presidio Analyzer, it is recommended to install the detections
extras:
poetry install --extras="detections"
As part of the detections
extras installation, the download for the en_core_web_lg
spaCy model will be enabled on first use of the PresidioPIIAnalyzer()
. If more language support is needed, you'll need to download it separately. Reference explosion/spacy-models.
Depending on your setup and need, you may need to add the virtual environment to Jupyter. You may do so with the following command:
make jupyter.attach.venv