MCPcopy Create free account
hub / github.com/modelscope/FunASR / merge_seque

Function merge_seque

funasr/utils/speaker_utils.py:195–207  ·  view source on GitHub ↗

Merge seque. Args: distribute_res: TODO.

(distribute_res)

Source from the content-addressed store, hash-verified

193
194
195def merge_seque(distribute_res):
196 """Merge seque.
197
198 Args:
199 distribute_res: TODO.
200 """
201 res = [distribute_res[0]]
202 for i in range(1, len(distribute_res)):
203 if distribute_res[i][2] != res[-1][2] or distribute_res[i][0] > res[-1][1]:
204 res.append(distribute_res[i])
205 else:
206 res[-1][1] = distribute_res[i][1]
207 return res
208
209
210def smooth(res, mindur=1):

Callers 2

postprocessFunction · 0.70
smoothFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…