Repository navigation
feat(dictation): cleanup v2.1 post-tagger rules and 128-term sublinear vocabulary bias - #3069
Merged
Merged
Conversation
…r vocabulary bias
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.
Dictation keeps spoken
a.m./p.m.across time corrections, joins compound terms on screen, and biases short technical words without false triggers.Clean up what I say v2 now preserves spoken meridiems deleted in a time self-correction, joins 2-3 word spans that match active mixed-case or kebab-case vocabulary and screen terms, and aligns a 1-edit email surname to an explicit full name spoken in the same dictation. Parakeet's vocabulary cap rises from 64 to 128 terms with sublinear SentencePiece bonuses and screen- or spelling-corroborated 3-4 letter matching.
💡 Why
Saying "10 a.m., sorry, 10:30" dropped "a.m." with the corrected phrase, compound package names on screen (
FastAPI,react-query,date-fns) arrived split across spaces, and Parakeet's 64-term linear bonus starved screen terms behind larger vocabularies while under-boosting single-piece words.🆕 Now you can
a.m.orp.m.("10 a.m., sorry, 10:30" becomes "10:30 a.m.", never inventing a meridiem when none was spoken).CloudSync,react-query,date-fns) and have split words joined automatically.first.last@domainemail handles consistent whenFirst Lastis spoken in the same dictation, and bias up to 128 vocabulary + screen terms in Parakeet with 3-4 letter acoustic matching gated to corroborated terms.🚦 How it ships
Cleanup rules run inside Labs › Clean up what I say v2 (off by default); screen corroboration runs when Labs › Words on screen is on, and Parakeet's 128-term sublinear bias applies whenever Vocabulary boost is active.
📊 Numbers: evaluated across held-out dictation, clean read/conversational speech, safety, and multi-domain test suites on Apple Silicon
The new unit tests in
cleanup::v2::post::tests,screen_vocabulary::tests, andvocabulary::testsfail without the change (694 tests run across dictation and vocabulary).👀 Read:
src/dictation/cleanup/v2/post.rsandsrc/dictation/cleanup/v2/render.rs—renderstays frozen for the 640 recorded Round 4 parity cases whilerender_v21tracks deleted correction spans so only a spoken clock meridiem directly preceding a bare 12-hour repair is carried forward. The rest is routine.🔍 From dictation error analysis · no user reports · measured with transcribe-cli and the Core ML v2 tagger on macOS
Checks run
scripts/check dictation::: 584 passedscripts/check vocabulary: 93 passedscripts/check rune_ui::vocabulary::tests: 17 passedcargo clippy --locked --bin hex -- -D warnings: 0 warningspython3 scripts/code-shape.py: 0 hard problemspython3 scripts/check-nix-git-pins.py: 14 passed, 3/3 pins match