-
Notifications
You must be signed in to change notification settings - Fork 603
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
predefined pattern recognizer : IN_VEHICLE_REGISTRATION #1288
Conversation
Added India PAN (Permanent Account Number) recognizer
refined the regex for better recognition and enhanced the test cases accordingly
Fixed lint error that was missed earlier.
Added test cases , verification and context data
Added negative test cases per review comments.
linted code
update pattern recognizer value per suggestion in review
added PresidioAnalyzerUtils class with generic functions. removed usage of stdnum
added test cases for analyzer_utils.py in prescribed format
added to the count of predefined recognizers
Added India specific predefined pattern recognizer for vehicle registration number
Hi @omri374 , please have a look when feasible and let me know your review comments |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Thanks! I'll review it soon. |
...idio-analyzer/presidio_analyzer/predefined_recognizers/in_vehicle_registration_recognizer.py
Outdated
Show resolved
Hide resolved
...idio-analyzer/presidio_analyzer/predefined_recognizers/in_vehicle_registration_recognizer.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! great addition. Left a few comments
reinstated python 3.9 compatibility, reorganized code
Hi @omri374 , |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
...idio-analyzer/presidio_analyzer/predefined_recognizers/in_vehicle_registration_recognizer.py
Outdated
Show resolved
Hide resolved
...idio-analyzer/presidio_analyzer/predefined_recognizers/in_vehicle_registration_recognizer.py
Outdated
Show resolved
Hide resolved
...idio-analyzer/presidio_analyzer/predefined_recognizers/in_vehicle_registration_recognizer.py
Outdated
Show resolved
Hide resolved
Logic reverted from analyzer_utils to recognizer classfile
added min size check to avoid failures per review comment
hi @omri374 , |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @devopam! I've left a few comments mainly around performance.
...idio-analyzer/presidio_analyzer/predefined_recognizers/in_vehicle_registration_recognizer.py
Outdated
Show resolved
Hide resolved
...idio-analyzer/presidio_analyzer/predefined_recognizers/in_vehicle_registration_recognizer.py
Outdated
Show resolved
Hide resolved
...idio-analyzer/presidio_analyzer/predefined_recognizers/in_vehicle_registration_recognizer.py
Show resolved
Hide resolved
...idio-analyzer/presidio_analyzer/predefined_recognizers/in_vehicle_registration_recognizer.py
Outdated
Show resolved
Hide resolved
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for incorporating all the changes! Approved.
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Change Description
Addition of a predefined recognizer : IN_VEHICLE_REGISTRATION
Describe your changes
Pattern, Context and Checksum based recognizer for India RTO issued vehicle registration number
Issue reference
This PR fixes issue #XX
Checklist