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

Function write_file

fun_text_processing/text_normalization/data_loader_utils.py:259–270  ·  view source on GitHub ↗

Writes out list of string to file. Args: file_path: file path data: list of string

(file_path: str, data: List[str])

Source from the content-addressed store, hash-verified

257
258
259def write_file(file_path: str, data: List[str]):
260 """
261 Writes out list of string to file.
262
263 Args:
264 file_path: file path
265 data: list of string
266
267 """
268 with open(file_path, "w") as fp:
269 for line in data:
270 fp.write(line + "\n")
271
272
273def post_process_punct(input: str, normalized_text: str, add_unicode_punct: bool = False):

Callers 2

normalize.pyFile · 0.90

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…