Commit cb3957c
Zenflow
fix false gap regions: close cracks between adjacent seg_windows
The gap detection was firing on cracks between consecutive segment windows
where unmatched (interpolated) segments sat between two matched anchors.
Whisper words belonging to real content fell in the crack and were
mis-classified as out_of_transcript.
Root cause: seg_window[i].end < seg_window[i+1].start whenever the matched
segment's LCS span ended before the next segment's start position. The 8s
MIN_AD_GAP threshold was then applied to this crack, producing fake 'gaps'.
Fix: after building all seg_windows, extend each window's end to the next
window's start (max of current end and next start). The gap detector then
only sees spans genuinely not covered by any window.
Impact on ep152:
Before: 88.6% assigned, 6 gap regions (5 fake + 1 real)
After: 99.8% assigned, 1 gap region (real StepStone ad, 36s intro)1 parent f441758 commit cb3957c
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
546 | 546 | | |
547 | 547 | | |
548 | 548 | | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
549 | 563 | | |
550 | 564 | | |
551 | 565 | | |
| |||
0 commit comments