https://github.com/privateai/deid-examples
Examples scripts that showcase how to use Private AI Text to de-identify, redact, hash, tokenize, mask and synthesize PII in text.
https://github.com/privateai/deid-examples
anonymization cpra data-anonymization data-loss-prevention data-masking de-identification de-identify deidentification dlp gdpr hipaa masking privacy-tools redact redaction synthetic-data synthetic-data-generator synthetic-dataset-generation text-anonymization tokenize
Last synced: about 2 months ago
JSON representation
Examples scripts that showcase how to use Private AI Text to de-identify, redact, hash, tokenize, mask and synthesize PII in text.
- Host: GitHub
- URL: https://github.com/privateai/deid-examples
- Owner: privateai
- License: mit
- Created: 2021-11-18T16:25:35.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2026-03-13T14:19:45.000Z (3 months ago)
- Last Synced: 2026-03-14T02:27:49.171Z (3 months ago)
- Topics: anonymization, cpra, data-anonymization, data-loss-prevention, data-masking, de-identification, de-identify, deidentification, dlp, gdpr, hipaa, masking, privacy-tools, redact, redaction, synthetic-data, synthetic-data-generator, synthetic-dataset-generation, text-anonymization, tokenize
- Language: Jupyter Notebook
- Homepage:
- Size: 36.5 MB
- Stars: 85
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Introduction
This repository contains examples that showcase how to use the Private AI REST API, for both Python and JS. The API allows for PII to be found in text and then replaced with redaction markers or synthetic PII. The system supports over [50 entity types](https://docs.private-ai.com/entities/), such as Credit Card information and Social Security numbers across [50 languages](https://docs.private-ai.com/languages/). The [documentation](https://docs.private-ai.com/introduction) and the [API reference](https://docs.private-ai.com/reference/latest/operation/process_text_v3_process_text_post/) are available from Private AI's website.
## How to get access
Get a [Community API key here](https://portal.private-ai.com/)
For further information & access to the container feel free to [contact us](https://www.private-ai.com/da2t).
## Setup
Private AI's service is primarily delivered via a self-hosted container. Please follow the [setup instructions](https://docs.private-ai.com/installation/) to get started.
It is also possible to use the Private AI cloud endpoint located at [https://portal.private-ai.com/](https://portal.private-ai.com/).
## What are these examples?
In the [JS](./js/examples/) folder where have common api call examples and use cases built in javascript. In the [python](./python/examples/) folder we have the same examples expressed in python. If you are interested in working securely with LLMs, you should check out the [LLMs](./python/LLM%20Examples/) folder for some really cool stuff!