Skip to content

Custom and Default Entities Not Fully Anonymizing Text #1560

Discussion options

You must be logged in to vote

Hi @cristianosticca-pagopa
Everything is correct except for one small change needed. If you don't specify the language for the new custom recognizer, it would assume it supports English. Here's the fixed definition:

plate_recognizer = PatternRecognizer(patterns=[plate_pattern], 
                                     supported_entity="IT_VEHICLE_PLATE", 
                                     name="IT_VEHICLE_PLATE", 
                                     supported_language="it")

I would further suggest to add context words as these could boost the confidence of this being an Italian license plate and not a different entity.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cristianosticca-pagopa
Comment options

Answer selected by cristianosticca-pagopa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants