-
Notifications
You must be signed in to change notification settings - Fork 581
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
Add recognizers (et, lt, pl) #1215
base: main
Are you sure you want to change the base?
Conversation
/azp run |
Thanks! We'll review this shortly. Please also add the new entities to docs/supported_entities.md |
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! Left some minor comments.
from presidio_analyzer import Pattern, PatternRecognizer | ||
|
||
|
||
class EtIkRecognizer(PatternRecognizer): |
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.
Can we / should we create a class which supports all those entities with the same logic, and have the different specific country implementations inherit those? What are your thoughts?
), | ||
] | ||
|
||
CONTEXT = ["asmens kodas"] |
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.
The current implementation of context works better with unigrams. Can we separate this into "asmens", "kodas" or one of those, in addition to the existing "asmens kodas"?
("37102250382", 1, ((0, 11),),), | ||
# invalid identity card scores | ||
("37132250382", 0, ()), | ||
("99999999999", 0, ()), |
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.
Please add a test case with surrounding text
("33309240064", 1, ((0, 11),),), | ||
# invalid identity card scores | ||
("33309240063", 0, ()), | ||
("99999999999", 0, ()), |
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.
Same here, please add a test case with surrounding text
@bckamil are you interested in completing this PR? |
Change Description
Added:
You can verify recognizers using:
Checklist