presidio/presidio-analyzer
Wayne Hong fde30dd4bd
Add support for allow_list, allow_list_match, regex_flags in REST API (#1478)
2024-11-11 22:41:48 +02:00
..
presidio_analyzer Add support for allow_list, allow_list_match, regex_flags in REST API (#1478) 2024-11-11 22:41:48 +02:00
tests Bug/azure ai language context (#1458) 2024-10-02 10:45:05 +03:00
Dockerfile From Pipenv to Poetry (#1391) 2024-06-02 12:59:21 +03:00
Dockerfile.dev Removed python 3.8 support (EOL) and added 3.12 (#1479) 2024-11-04 11:47:02 +02:00
Dockerfile.transformers From Pipenv to Poetry (#1391) 2024-06-02 12:59:21 +03:00
Dockerfile.windows Update Dockerfile.windows (#1414) 2024-07-16 21:22:15 +03:00
README.md From Pipenv to Poetry (#1391) 2024-06-02 12:59:21 +03:00
app.py Add support for allow_list, allow_list_match, regex_flags in REST API (#1478) 2024-11-11 22:41:48 +02:00
deploytoazure.json
install_dependencies.sh Dev containers for: analyzer, analyzer+transformers, anonymizer and image redaction (#1450) 2024-09-19 13:01:02 -07:00
install_nlp_models.py Auto-formatting, fix D rules (#1381) 2024-05-12 13:12:55 +03:00
logging.ini
pyproject.toml Removed python 3.8 support (EOL) and added 3.12 (#1479) 2024-11-04 11:47:02 +02:00

README.md

Presidio analyzer

Description

The Presidio analyzer is a Python based service for detecting PII entities in text.

During analysis, it runs a set of different PII Recognizers, each one in charge of detecting one or more PII entities using different mechanisms.

Presidio analyzer comes with a set of predefined recognizers, but can easily be extended with other types of custom recognizers. Predefined and custom recognizers leverage regex, Named Entity Recognition and other types of logic to detect PII in unstructured text.

Deploy Presidio analyzer to Azure

Use the following button to deploy presidio analyzer to your Azure subscription.

Deploy to Azure

Simple usage example

from presidio_analyzer import AnalyzerEngine

# Set up the engine, loads the NLP module (spaCy model by default) and other PII recognizers
analyzer = AnalyzerEngine()

# Call analyzer to get results
results = analyzer.analyze(text="My phone number is 212-555-5555",
                           entities=["PHONE_NUMBER"],
                           language='en')
print(results)

Documentation

Additional documentation on installation, usage and extending the Analyzer can be found under the Analyzer section of Presidio Documentation