feat(seed): backfill HNC bulk flags onto already-seeded Greek entries #22
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority/Critical
Priority/High
Priority/Low
Priority/Medium
Reviewed/Confirmed
Reviewed/Duplicate
Reviewed/Invalid
Reviewed/Won't Fix
Status/Abandoned
Status/Blocked
Status/Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
project-halkyon/halkyon-curator!22
Loading…
Reference in a new issue
No description provided.
Delete branch "refs/pull/22/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Adds
backfill_hnc_bulks, a CLI that sets thehnc_lemma_words_<N>frequency-bulk flags on Greekdictionary_entriesthat are already in the catalog — no source JSONL needed.Why
#21 taught
seed_bilingual --hnc-bulk-dirto tag rows at seed time, but the Greek entries are already seeded and re-seeding needs the source JSONL (the pending PONS-scraper output). This backfills the flags onto the existing rows directly.How
id, language, expressionvia PostgREST (paged), filtered by--language(defaultel, comma-separated / repeatable).HncLemmaBulksused by the seeder (identical case/accent/final-sigma folding — no risk of divergence).{id, language, ...hnc_lemma_words_<N>}via the existing merge-on-(id, language)helper, so only the flag columns change — meanings/senses/expression are untouched.--dry-runreports match counts + sample matches without writing. Service-role key from the environment, never argv.Verification
dart analyzeclean;--help/ arg-validation exercised.hnc_lemma_bulks_test.dart) and was dry-run-validated against the real 47-file corpus in #21.Usage
Pull request closed