提交 fe8ce9af 编写于 作者: T tink2123

polish code

上级 a3b29192
...@@ -30,6 +30,8 @@ class CharacterOps(object): ...@@ -30,6 +30,8 @@ class CharacterOps(object):
self.character_str = "0123456789abcdefghijklmnopqrstuvwxyz" self.character_str = "0123456789abcdefghijklmnopqrstuvwxyz"
dict_character = list(self.character_str) dict_character = list(self.character_str)
elif self.character_type == "ch": elif self.character_type == "ch":
if self.loss_type == "srn":
raise Exception("SRN can only support in character_type == en")
character_dict_path = config['character_dict_path'] character_dict_path = config['character_dict_path']
add_space = False add_space = False
if 'use_space_char' in config: if 'use_space_char' in config:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册