Commit 8e56628
Zenflow
podcast alignment: true LCS, 4-gram bootstrap offset, consecutive-miss recalibration
Step 2 complete rewrite with 5 bug fixes:
- Replace greedy anchored lcs_score() with true O(n·m) DP LCS (_true_lcs_len,
_find_lcs_span). Old code required t_norm[0] to appear in chunk, scoring 0.0
whenever whisper dropped the first word(s) of a segment.
- Replace sliding WIN=n+n//3 sub-window in search_segment() with a single true
LCS pass over the full time window. No sliding needed; DP finds best span
regardless of where the match starts or ends.
- Bootstrap offset via 4-gram exact-run scan (_bootstrap_offset). Previous
offset=None bootstrapped by searching [-90,+90]s around t=0, finding only
sponsor jingle and never initialising the offset. 4-gram scan reliably
detects offset=+33.61s for ep152 from 'goes turning into some'.
- Replace forward-anchored wide-window fallback with consecutive-miss
recalibration: after N_MISS_AD=8 misses on >=4-word segments, search
±RECAL_WIN=60s around expected position with cursor as floor. Eliminates
the offset oscillation (+/-100s per segment) from the old cursor_t+WIDE_WIN
strategy.
- Exclude short segments (<MIN_WORDS=4) from pending_miss queue. They were
accumulating and triggering false recalibrations. Interpolation handles them.
- Add back-fill pass: segments that fail both tight and recal windows are queued
in pending_miss and resolved backwards from the next successful anchor.
Results on ep152: 89.2% words assigned (vs 86.4%), 1636/1800 eligible segments
matched, 2 clean gap regions (34s intro + 8s gap), 2 accurate recalibrations
at the known StepStone ad break (~t=1400s).
Also add untracked experiment/analysis scripts from ep150-159 MFA/whisper work.1 parent 5df84e4 commit 8e56628
11 files changed
Lines changed: 2257 additions & 215 deletions
File tree
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
0 commit comments