MCPcopy Create free account
hub / github.com/MoonInTheRiver/DiffSinger / remove_empty_lines

Function remove_empty_lines

data_gen/tts/data_gen_utils.py:187–194  ·  view source on GitHub ↗

remove empty lines

(text)

Source from the content-addressed store, hash-verified

185
186
187def remove_empty_lines(text):
188 """remove empty lines"""
189 assert (len(text) > 0)
190 assert (isinstance(text, list))
191 text = [t.strip() for t in text]
192 if "" in text:
193 text.remove("")
194 return text
195
196
197class TextGrid(object):

Callers 2

__init__Method · 0.85
get_mel2phFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected