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

Expose allow_list in REST AnalyzeRequest #1470

Open
nickzelei opened this issue Oct 15, 2024 · 1 comment
Open

Expose allow_list in REST AnalyzeRequest #1470

nickzelei opened this issue Oct 15, 2024 · 1 comment

Comments

@nickzelei
Copy link

nickzelei commented Oct 15, 2024

Is your feature request related to a problem? Please describe.
I see examples in documentation around specifying an allow_list when invoking the analyzer, but it doesn't seem to be exposed via the REST interface.

Describe the solution you'd like
Expose the allow_list in the body of the AnalyzeRequest POST.

POST /analyze

{
    "text": "John Smith drivers license is AC432223 and the zip code is 12345",
    "language": "en",
    "score_threshold": 0.6,
    "allow_list": ["John"]
}

Describe alternatives you've considered
None

Additional context
I'm using Presidio in a REST format as the code I'm writing is not written in Python.

@omri374
Copy link
Contributor

omri374 commented Oct 25, 2024

Thanks for your suggestion. Will you be interested in creating a pull request?

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

2 participants