Use the Stanford NER model to clean personally identifiable information from dirty dirty text.
Project description
scrubadub removes personally identifiable information from text. scrubadub_stanford is an extension that uses Stanford’s NER model to remove personal information from text.
This package contains three flavours of interfacing with Stanford’s NER models that can be used as a detector:
scrubadub_stanford.detectors.StanfordEntityDetector - A detector that uses the Stanford NER model to find locations, names and organizations. Download size circa 250MB.
scrubadub_stanford.detectors.CoreNlpEntityDetector - The same interface as the StanfordEntityDetector, but using Stanza’s CoreNLPClient to interface with the CoreNLP Java Server. Download size circa 510MB.
scrubadub_stanford.detectors.StanzaEntityDetector - Similar to the above but using Stanza’s native Python pipelines. Download size circa 210MB. No Java required. This is the recommended detector for speed and footprint.
Prerequisites
A minimum version of Java Runtime Environment 8 is required for StanfordEntityDetector and CoreNlpEntityDetector. Check which version by running:
$ java -version
It should be at least version 1.8, but if not, please run the following commands:
Linux:
$ sudo apt update $ sudo apt install openjdk-8-jre
MacOS:
$ brew tap adoptopenjdk/openjdk $ brew install adoptopenjdk8-jre
For more information on how to use this package see the scrubadub stanford documentation and the scrubadub repository.
New maintainers
LeapBeyond are excited to be supporting scrubadub with ongoing maintenance and development. Thanks to all of the contributors who made this package a success, but especially @deanmalmgren, IDEO and Datascope.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for scrubadub_stanford-2.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe6bb09172f99ca90e043c351ee89229136ce21b218b13a1d645d3ed2bab0893 |
|
MD5 | 003e595b3f02a7294b547b288c5deb3a |
|
BLAKE2b-256 | 294925e6bd3560834e776f2da5924cfbf845df111dcf0a95638b88a3b017e8e8 |