-
Notifications
You must be signed in to change notification settings - Fork 0
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
Instance anonymization #17
base: master
Are you sure you want to change the base?
Conversation
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.
As discussed, probably PresidioAnonymizer
should have a temporary mapping for each anonymization
libs/experimental/langchain_experimental/data_anonymizer/deanonymizer_mapping.py
Outdated
Show resolved
Hide resolved
libs/experimental/langchain_experimental/data_anonymizer/presidio.py
Outdated
Show resolved
Hide resolved
libs/experimental/langchain_experimental/data_anonymizer/deanonymizer_mapping.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.
pls add an example in a notebook (maybe one of previously added?)
"""Update the deanonymizer mapping with new values | ||
Duplicated values will not be added | ||
""" | ||
new_values_seen = set() |
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.
why do we need this? Due to the fact that the same value can appear for different entity_type
?
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.
In the case of default recognizers, not likely, but who knows what users will come up with when adding their own 😛
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.
minor things 🙌
No description provided.