From 3acdd595c293a7d5085de831c9acd8156658ccc1 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 0444c1ac2f..aadf1095b2 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 None else: syms = read_lists(non_lang_sym_path) non_lang_syms_pattern = re.compile(r"(\[[^\[\]]+\]|<[^<>]+>|{[^{}]+})")