Repository navigation
fix: an "I mean" that starts a correction is no longer cut alone - #398
Merged
Merged
Conversation
…alone The filler rule cut "I mean" in "the rain, I mean the sun" and left the first try, so the text read "the rain the sun". It now leaves a marker when the syrinx tag head reads one of its words as a cue (P >= 0.5), or reads a word within 3 spoken words of it as abandoned. Only words the string rules left count. With parse: vectors the tree cutter then takes the cue and the first try together. HOLD and NEAR were chosen on AMI dev and CV dev marker rows. Two cases now keep a filler where the tag head misreads a number phrase as a correction; both are marked as known misses. Two new tree cases cover the cue. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WfxPEjc1EEGqG2rHoJcLJ2 Signed-off-by: Nathan Zylbersztejn <[email protected]>
|
Automatic reviews are disabled for this repository. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 51 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Owner
Author
|
Local review: The remote CodeRabbit run hit its rate limit on this PR, so it has not reviewed yet. |
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.
The filler rule cut an "I mean" that starts a correction and left the first try. "Put it in the left panel I mean the right panel" came out as "Put it in the left panel the right panel", which is worse than the input. Now the rule leaves a marker when the syrinx tag head reads it as part of a correction. With
parse: vectorsthe tree cutter then takes the first try and the cue together: "Put it in the right panel". Opt-in only: the filler rule runs withparse: trueorparse: vectorson thedisfluencystep. No Swift change.Review first:
in_correctioninbuilt-in/transforms/disfluency/disfluency.py, and the two cases incases.yamlthat now keep a filler.parse: true, mainparse: true, this PRparse: vectors, mainparse: vectors, this PRWhy the old rule did harm: it cut the cue and never the first try
The filler rule runs after the string rules and before the tree cutter. It judged each marker on the parse of its own sentence only, so the cue of a correction looked like any other "I mean". Two things went wrong.
parse: vectorsit proposes the first try and the cue as one cut. If the filler rule already took the cue, the overlap rule drops the proposal. That cost 2 fixed corrections on real dev.The 4 extra damaged rows are filler cuts right next to a correction: 2 just before it, 2 right after it.
The fix: a marker stays when the tag head reads a correction in or next to it
in_correction(parse, words)returns the parse words that are in a correction the string rules left:HOLD), orNEAR) is read as abandoned, P >= 0.5.Only words that survived the string rules count. A first try the rules already cut needs no cue, so "So like the the parser" still loses "like".
resolveskips a marker with a held word. Nothing else changes, and the rule can only cut less than before.One pipeline for every language: no per-language branch or threshold. Today only English has markers.
How HOLD and NEAR were chosen: AMI dev and CV dev, then real dev once
Parses come from the app binary (
--parse --batch --vectors). Only rows with a marker change. fixed/partly/missed/damaged, f = false-cut words.parse: trueparse: vectorsHOLD 0.5 is the head's own decision point. NEAR 4 buys 3 fewer damaged items for 6 more fillers kept, so NEAR 3. CV dev (52 marker rows) at 0.5/3:
parse: true27/6/42/3 against main's 25/6/41/6, no filler cut lost. Written dictation dev and adversarial dev: every move on main was a cue cut, and at 0.5/3 both equal the filler rule off. Dropping the cue term leaves one cue cut in each of those sets, so it stays.Real dev was then scored once with these values, through the same harness as #396. Pass line, set before:
parse: truedamaged <= 2, fixed >= 121, false-cut words <= 85;parse: vectorsdamaged <= 3, fixed >= 141. Both pass, damaged at the edge. Real dev has been scored several times across these PRs, so a fresh set of dictations is needed before calling this general.Cases and checks
score.py: 104/109, collapse 60/65, keep 44/44. Main on the same file: 103/109, keep 44/44.Two new
treecases: the "left panel / right panel" one above, and "I want the small one, I mean the large one." -> "I want the large one.". Main fails both.Two cases now keep a filler, marked as known misses. The tag head reads "two hundred" in "like two hundred forty-three is is" as abandoned, and "five maximum eight" as a correction, so the marker next to them stays. Both are fillers left in, not wrong cuts.
--eval disfluency:parse: vectors60/65 change, 44/44 keep;parse: true56/65, 44/44 (the 4treecases need vectors).parses.json: 2 entries added, 0 changed, recorded withscore.py --record.Check scripts (release build, scratch configs): 17 of 18 pass.
check-bug-reportfails 25/26 on the~home path, the same failure as on feat(disfluency): the tree cutter and the cut filter run after the rules #396.check-pipelinefailed 130/134 under load, then passed 134/134 on a rerun; feat(disfluency): the tree cutter and the cut filter run after the rules #396 saw the same.Live gate (
--pipelinevocabulary -> disfluency,cp -chomes, one binary): main's rows from feat(disfluency): the tree cutter and the cut filter run after the rules #396 against this PR, both opt-ins. Bench static and chrono at 0.85 and 0.60, 165 dictations each: 2 outputs differ in each job, both a marker the fix keeps (4 marker cuts on main, 2 here). Vocabulary decisions differ 0 times, and bench outcomes are identical. Tree cuts unchanged (3 per job with vectors). French 573 dictations: 0 outputs differ. Nodeclinedanywhere.What this does not fix
parse: truestill has 4 more partly items than with the filler rule off (16 against 12). They are likely cue cuts where the tag head reads neither the cue nor the first try.🤖 Generated with Claude Code
https://claude.ai/code/session_01WfxPEjc1EEGqG2rHoJcLJ2