MCPcopy Create free account
hub / github.com/FunAudioLLM/FunMusic / remove_bracket

Function remove_bracket

inspiremusic/utils/frontend_utils.py:32–37  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

30
31# remove meaningless symbol
32def remove_bracket(text):
33 text = text.replace('(', '').replace(')', '')
34 text = text.replace('【', '').replace('】', '')
35 text = text.replace('`', '').replace('`', '')
36 text = text.replace("——", " ")
37 return text
38
39
40# spell Arabic numerals

Callers 1

text_normalizeMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected