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

Add bulk method, revamp documentation structure #7

Merged
merged 6 commits into from
Nov 21, 2024

Conversation

akamor
Copy link
Contributor

@akamor akamor commented Nov 21, 2024

No description provided.

@akamor akamor enabled auto-merge November 21, 2024 18:03
Copy link
Contributor

@joeferraratonic joeferraratonic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I pushed a commit that changes the de_identify_results for redact_bulk from List[Replacement] where Replacement has an idx field to List[List[Replacement]] so that de_identify_results, bulk_text, and bulk_redacted_text are all lists of the same length. With this change I also removed the now unneeded idx field of Replacement. I also tested this change.

Otherwise, looks good to me.

random_seed: Optional[int] = None,
label_block_lists: Optional[Dict[str, List[str]]] = None,
label_allow_lists: Optional[Dict[str, List[str]]] = None,
) -> RedactionResponse:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
) -> RedactionResponse:
) -> BulkRedactionResponse:

Copy link
Contributor

@gandersteele gandersteele left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@akamor akamor merged commit 9534d40 into main Nov 21, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

3 participants