add --exclude option
Add ability to exclude entities from de-identification with -x
, --exclude
.
- This uses a comma as the delimiter to allow for multiple entities.
- Comma can be overridden by setting the
DEIDENTIFY_EXCLUDE_DELIM
environment variable.
The Python API can also use this option be setting a DeidentificationConfig.excluded_entities
option to a Python set
data type.
Improve Python API
- reset all internal variables at the beginning of the
deidentify
method - lower-case all
config.excluded_entities
- added API testing with
api_test.py