MCPcopy Index your code
hub / github.com/modelscope/FunASR / format_tsv

Function format_tsv

funasr/cli.py:35–39  ·  view source on GitHub ↗
(segments)

Source from the content-addressed store, hash-verified

33
34
35def format_tsv(segments):
36 lines = ["start\tend\ttext"]
37 for seg in segments:
38 lines.append(f"{seg.get('start',0)/1000:.3f}\t{seg.get('end',0)/1000:.3f}\t{seg.get('text','')}")
39 return "\n".join(lines)
40
41
42def _format_output(text, segments, timestamps, fmt, audio_path, model_name, language, elapsed):

Callers 1

_format_outputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…