From 55da48a2b7eff46b6f860cb547548087c63b4f81 Mon Sep 17 00:00:00 2001 From: Mddct Date: Mon, 27 Nov 2023 16:55:49 +0800 Subject: [PATCH] [text] revert wenet/utils/file_utils.py --- wenet/utils/file_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wenet/utils/file_utils.py b/wenet/utils/file_utils.py index 0444c1ac2..264e37e73 100644 --- a/wenet/utils/file_utils.py +++ b/wenet/utils/file_utils.py @@ -39,7 +39,7 @@ def read_non_lang_symbols(non_lang_sym_path): """ if non_lang_sym_path is None: - return {} + return [] else: syms = read_lists(non_lang_sym_path) non_lang_syms_pattern = re.compile(r"(\[[^\[\]]+\]|<[^<>]+>|{[^{}]+})")