Added initial segment overlap resolution logic

This commit is contained in:
2026-04-27 15:52:53 -05:00
parent e42a2326e8
commit 1b9f4bd922
16 changed files with 1357 additions and 59 deletions

View File

@@ -132,7 +132,7 @@ func TestDetectIsIdempotent(t *testing.T) {
func segment(source string, sourceIndex int, speaker string, start float64, end float64) model.Segment {
return model.Segment{
Source: source,
SourceSegmentIndex: sourceIndex,
SourceSegmentIndex: intPtr(sourceIndex),
Speaker: speaker,
Start: start,
End: end,
@@ -140,6 +140,10 @@ func segment(source string, sourceIndex int, speaker string, start float64, end
}
}
func intPtr(value int) *int {
return &value
}
func assertGroup(t *testing.T, merged model.MergedTranscript, groupIndex int, id int, start float64, end float64, refs []string, speakers []string) {
t.Helper()
if len(merged.OverlapGroups) <= groupIndex {