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

Function extract_text

examples/migration/benchmark_funasr.py:125–136  ·  view source on GitHub ↗
(result: Any)

Source from the content-addressed store, hash-verified

123
124
125def extract_text(result: Any) -> str:
126 if not result:
127 return ""
128 first = result[0] if isinstance(result, list) else result
129 if isinstance(first, dict):
130 text = first.get("text", "")
131 else:
132 text = str(first)
133 try:
134 return rich_transcription_postprocess(text)
135 except Exception:
136 return text
137
138
139def write_jsonl(path: Path, rows: Iterable[Dict[str, Any]]) -> None:

Callers 1

mainFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…