Hello everyone!
In this video we will create custom PII Entity Recognizer procedure analyzers.
They have a set of predefined set of entity recognizers that we used in our previous video.
However, you can also create custom recognizers without changing the analyzers base code, right?
So to do that let's first install the basic Python packages.
Does take a few minutes to download and install the packages from Presidio, so I'll pause the video.
So now it's done.
Let's go ahead and import the classes from the package.
The classes that we need is, um, analyze engine and pattern cognizer.
Right.
Now, I'll go ahead and use the text that we want to analyze.
Okay.
His name is Mr. Jones and his phone number.
Is this right?
So now let's initialize the, uh, analyzer with analyzer engine.
Then, uh, let's create a pattern recognizer for for analyzing the title.
And name the variable as title recognizer.
The name of this is going to be title.
And the denial list would be.
Mr..
And Mrs..
Right now let's go ahead and do add this particular recognizer to the to the to the registry.
And now let's go ahead and analyze the text.
Text that we want to analyze is text to recognizer.
The entity that we want to recognize is title.
And the language is going to be English.
Right now let's go ahead and execute this.
All right.
So now here is the results from the analyzer.
It did identify the title as an entity that starts from the word count as 12 and ends at 15.
And the score is one which is a very high confidence level because it exactly matches the uh, uh,
the denialist.
All right.
Thank you so much.