kiji-proxy
kiji-proxy copied to clipboard
Training templates leak a probe name, plus smaller data-builder issues
Found while reviewing #688. Code: model/dataset/ on that branch.
A probe name leaks into training (synthetic_negatives.py:431 vs :89)
The surname pool has "Müller-Lüdenscheidt", which contains the held-out probe name "Müller" as a whole word. 22 of 3,000 German template rows have it inside a SURNAME span. test_synthetic_pools_avoid_probe_names (tests/test_german_training_data.py:187) checks exact set membership only, so it misses this.
Smaller items
german_sources.py:42maps SECONDARY_ADDRESS ("Whg. 4", "Apt 3B") to STREET.german_sources.py:205-207/_to_sample: nym rows with no entities (about 13%, all PII-free) are dropped, although the mix wants negatives.- Unverified:
build_training_mix.py:216-222stops streaming openpii after 50k consecutive non-German rows once a German row has been seen. If German rows come in separate blocks, the subset is silently cut short. german_sources.py:232-236uses nym offsets without a sanity check.check_offsetsfound 0 errors on the cached sets, but byte offsets would shift every row with an umlaut.id_templates.py:403-410draws SSNs and NI numbers from the full assignable space, so generated values can match real people's.
Test gaps
test_synthetic_rows_avoid_probe_codeshard-codes 14 of the 23PROBE_STRINGS.- Nothing tests
write_samples,summarizeor--extend-from.