Skip to content

Add batched decorator#7

Closed
ryantwolf wants to merge 8 commits into
mainfrom
rywolf/batched-refactor
Closed

Add batched decorator#7
ryantwolf wants to merge 8 commits into
mainfrom
rywolf/batched-refactor

Conversation

@ryantwolf

@ryantwolf ryantwolf commented Mar 20, 2024

Copy link
Copy Markdown
Contributor

Refactors batched to be in a decorator. This frees the user from having to be knowledgable about how the underlying DocumentFilter or DocumentModifier when initializing ScoreFilter or Modify respectively.

Unit tests pass. The following scripts were manually tested and work properly.

examples/classifier_filtering.py
examples/find_pii_and_deidentify.py
nemo_curator/scripts/find_pii_and_deidentify.py
tutorials/tinystories/main.py

@ryantwolf ryantwolf requested a review from ayushdg March 20, 2024 17:48
Signed-off-by: Ryan Wolf <rywolf@nvidia.com>
Signed-off-by: Ryan Wolf <rywolf@nvidia.com>
Signed-off-by: Ryan Wolf <rywolf@nvidia.com>
Signed-off-by: Ryan Wolf <rywolf@nvidia.com>
@ryantwolf ryantwolf force-pushed the rywolf/batched-refactor branch 2 times, most recently from 1444c12 to 34f2d7f Compare March 27, 2024 23:26
@ryantwolf ryantwolf closed this Mar 27, 2024
@ryantwolf ryantwolf deleted the rywolf/batched-refactor branch April 24, 2024 18:54
nune-tadevosyan pushed a commit to nune-tadevosyan/Curator that referenced this pull request Apr 29, 2026
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.

1 participant