This repo covers:
- How to submit a request to the ScienceIO API
- Demos of
identify-phi
andredact-phi
Before using this repo, you must have ScienceIO credentials (API key and secret) saved to your environment.
See ScienceIO docs for how to set up your environment
For a quick setup, run the following commands in your command line terminal:
export SCIENCEIO_KEY_ID={YOUR_API_KEY_ID}
export SCIENCEIO_KEY_SECRET={YOUR_API_KEY_SECRET}
Please use Python 3.7 or higher. You may pip-install the dependencies for this repo with:
pip install -r requirements.txt
python identify_demo.py --text "Text goes here"
python redact_demo.py --text "Text goes here"
If you want to use text from a file:
python identify_demo.py --text "$(< example_note_01.txt)"
python redact_demo.py --text "$(< example_note_01.txt)"