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.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 530d547a8614d48bad07c498b417e781a8360b750c1e405e50256aeaf62d0be7 |
|
MD5 | a420368c5541545a108fef2e6695956a |
|
BLAKE2b-256 | 198fef06e04cbf4a015fee83797f154989095cefb678917a3b66baddfb5fc6c4 |