Select enrichment and assemble Dataset V1 - #29
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
premove-select-enrichmentandpremove-assemble-dataset-v1CLIsWhy
The compiled enrichment reservoir is intentionally large and skewed. Dataset V1 needs a smaller, explicit enrichment contribution before it is combined with frozen Google data. This change makes that selection reproducible and keeps controlled PHONE/TIME versus DIGIT_SEQUENCE contrasts together.
Assembly then establishes one validated, deduplicated candidate artifact before grouped train/validation splitting. Without this boundary, duplicate or related records could be split independently, and source-specific compilation paths could diverge.
Invariants
TrainingRecordis recompiled with the shared compilerFrozen V1 audit
Selected enrichment:
Combined Dataset V1:
5ef45f4d3792cbbe68aec57c8ac63013f30478e5849c32140c6ba11bc92a3e83Generated corpus artifacts remain untracked.
Validation
uv run ruff check .uv run pytest— 47 passeduv run --package premove-itn-data pytest tools/data_pipeline/tests— 260 passedcargo test --manifest-path rust/Cargo.toml— 21 passeduv build --package premove-itnuv build --package premove-itn-data