Code Monkey home page Code Monkey logo

pii-transform's Introduction

pii-transform

version changelog license build status

This package takes a source document, a collection of detected PII instances, and transforms the document by replacing the PII instances in the document with a different representation.

The type of substitution done is defined by transformation policies.

Command-line scripts

The package provides three console scripts:

  • pii-transform loads a source document & a collection of already-detected PII, and produces a transformed document following the required policies.
  • pii-process is a full end-to-end script:
    • load a document, from among the formats supported by pii-preprocess
    • detects PII instances, according to pii-extract and its installed plugins
    • transforms the detected PII instances (according to the indicated policy) and writes out the transformed documennt
  • pii-process-jsonl is also a full end-to-end script; this one reads JSONL files and processes each line as a separate text buffer (possibly in different languages), producing a transformed JSONL document

Note that pii-process & pii-process-jsonl will need additional packages to be installed:

  • pii-preprocess (only for pii-process)
  • pii-extract-base, together with any available detection plugins, e.g. pii-extract-plg-regex and/or pii-extract-plg-presidio

API

The same functionality provided by the command-line scripts can also be accessed via a Python API

pii-transform's People

Contributors

paulovn avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.