Added initial segment overlap resolution logic
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user