nemo_curator.stages.deduplication.fuzzy.workflow
nemo_curator.stages.deduplication.fuzzy.workflow
Module Contents
Classes
Data
API
Bases: WorkflowBase
A pipeline that performs fuzzy deduplication of a dataset. It consists of the following stages:
- FilePartitioningStage Groups input files into smaller groups that can be processed in parallel.
- MinHashStage Computes minhashes for the input dataset.
- LSHStage Performs Locality Sensitive Hashing on the minhashes. This is a shuffle stage that involves moving data between workers.
- BucketsToEdgesStage This stage converts the resulting LSH mapping of bucket ID to document ID into a graph of edges.
- ConnectedComponentsStage Performs weaklyconnected components clustering on the graph represented by the edgelist.
- IdentifyDuplicatesStage Generates a list of document ids to remove based on the connected components clusters/components.
- Removal (Optional) Currently not implemented.
executor_config
num_hashes
Run the deduplication pipeline.
Parameters:
initial_tasks
executor
Executor to use for the pipeline. Defaults to RayActorPoolExecutor().