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

Function clean_text

examples/openai_api/server.py:85–87  ·  view source on GitHub ↗

Remove SenseVoice special tags from output.

(text: str)

Source from the content-addressed store, hash-verified

83
84
85def clean_text(text: str) -> str:
86 """Remove SenseVoice special tags from output."""
87 return re.sub(r'<\|[^|]*\|>', '', text).strip()
88
89
90@app.post("/v1/audio/transcriptions")

Callers 1

transcribeFunction · 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…