pii-process
Full end-to-end processing for PII (preprocess, extract, decide, transform)
Description
This package wraps around the relevant API blocks in the full PIISA workflow:
pii-preprocess, to read document formatspii-extract(plus any installed pii-extract plugins), to detect and extract PII instances from documentspii-decide, to consolidate the list of PII instancespii-transform, to substitute detected PII instances in documents
It provides both a Python API and a command-line interface
Installation
Dependencies have been included in the package so that all necessary PIISA packages are installed along. So what is needed is just:
- creation of a Python virtualenv (using Python >= 3.8)
- and installation of the package in the virtualenv
Choices are:
-
Simple installation: this will install the package, the packages for the four above mentioned PIISA processing steps, and the extraction plugin for PII instances using regular expressions:
pip install pii-processthe dependencies installed automatically are thus
pii-preprocess,pii-extract-base,pii-extract-plg-regex,pii-decideandpii-transform -
Complete installation: this installs all the above, plus the extraction plugin for PII instances using trained Transformer models (usually to extract PERSON and LOCATION types for some languages):
pip install pii-processtransformersOver the previous installation, this adds also the
pii-extract-plg-transformerspackage. Note that Pytorch needs to be installed too (either GPU or CPU versionss) , so that the models used by thepii-extract-plg-transformerspackage can run. See the transformers plugin documentation for more information, -
Alternate installation: this option performs the first install, and it adds the extraction plugin for PII instances using the Presidio library (usually to extract PERSON and LOCATION types for some languages):
pip install pii-processpresidiothe additional package installed is in this case
pii-extract-plg-presidio. And in order to work the relevant models need to be downloaded, see the presidio plugin documentation for details
It is also possible to install all plugins, i.e. pip install pii-processtransformers,presidio, though the Transformers and Presidio
plugins overlap in functionality (note that detection overlaps would be resolved
by the pii-decide block).
Metadata
Release files for pii-process 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pii-process-0.1.1.tar.gz | 16.5 kB | Details |
Release files / pii-process-0.1.1.tar.gz
| Download URL | pii-process-0.1.1.tar.gz |
|---|---|
| Size | 16.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b0be99227644702e1cd42eb2428296d938ffc2991e1ad5d656916e813545411a
|
|
BLAKE2b-256 checksum How to use checksums |
fb0a06e225a7509622adf3b81cf70442b6af3bc4b14c4be689b0d2ed107cf3df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|