Skip to content
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

Adding names to the whitelist does not except them #147

Open
msnackey opened this issue Aug 9, 2024 · 0 comments
Open

Adding names to the whitelist does not except them #147

msnackey opened this issue Aug 9, 2024 · 0 comments

Comments

@msnackey
Copy link

msnackey commented Aug 9, 2024

Using the code suggestion from the documentation page, I tried adding a name ('Max') to the whitelist to prevent it from being deidentified:
deduce.lookup_structs['whitelist'].add_items_from_iterable(["Max"])

Unfortunately, this did not lead to the expected result of 'Max' still being represented in the deidentified text. I checked to make sure that adding it to the whitelist lookup structure did work, and indeed it was one of the items of the whitelist LookupSet. I also tried this with the placename Utrecht and had similar results. Maybe it is not intended to work with names but only (common) words?

Using deduce 3.0.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant