Commit fe8ce9af authored by tink2123's avatar tink2123
Browse files

polish code

parent a3b29192
......@@ -30,6 +30,8 @@ class CharacterOps(object):
self.character_str = "0123456789abcdefghijklmnopqrstuvwxyz"
dict_character = list(self.character_str)
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']
add_space = False
if 'use_space_char' in config:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment