Skip to content

Keep a leading insertion in the first alignment span - #507

Open
SashaMIT wants to merge 1 commit into
NVIDIA:mainfrom
SashaMIT:fix/leading-alignment-span
Open

SashaMIT wants to merge 1 commit into
NVIDIA:mainfrom
SashaMIT:fix/leading-alignment-span

Conversation

@SashaMIT

@SashaMIT SashaMIT commented Sep 30, 2026 •

Copy link
Copy Markdown

indexed_map_to_output walks left through epsilon cells that insert output, but the bound is aligned_start - 1 > 0, so cell 0 is never included.

A leading <eps> that writes t, followed by input 2 writing w, is the spoken string tw. The span of that one input character came back as (1, 2), so the caller keeps only w.

The bound is now >= 0. A span that starts after a real input character still stops on that character, so the leading insertion is not pulled into a later word.

No existing issue.

indexed_map_to_output stopped the left walk at index 1, so a leading epsilon that writes the first output character was left out of the span.

Signed-off-by: Sasha Mitchell <sash.t.mitchell@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant