Files
presidio/docs/tutorial/00_getting_started.md
Omri Mendels e52cf5f0b4 New tutorial (#850)
* new tutorial

* updated index.md

* .

* updated toc

* adding "models" to the languages section

Co-authored-by: omri374 <omri.mendels@microsoft.com>
2022-04-12 21:04:28 +03:00

781 B

Getting started

Installation

First, let's install presidio using pip. For detailed documentation, see the installation docs. Install from PyPI:

pip install presidio_analyzer
pip install presidio_anonymizer
python -m spacy download en_core_web_lg

Simple flow

A simple call to Presidio Analyzer:

from presidio_analyzer import AnalyzerEngine

text = "His name is Mr. Jones and his phone number is 212-555-5555"

analyzer = AnalyzerEngine()
analyzer_results = analyzer.analyze(text=text, language="en")

print(analyzer_results)

Next, we'll go over ways to customize Presidio to specific needs by adding PII recognizers, using context words, NER models and more.