提交 a48e4f24 编写于 作者: D david.95

add filter for double punctuation, revise comment ;

add homonym, fix mistakes
上级 1edd474b
......@@ -100,7 +100,7 @@ class English(Phonetics):
for phn in phones
]
# when sentences have double punctuations in the end, like "!\"",or "?\"", will get null list like []
# add judge to filter it
# add a condition to filter it
if len(phones) != 0:
# replace unk phone with sp
phones_list.append(phones)
......
......@@ -94,12 +94,11 @@ class Frontend():
large_pinyin.load()
load_phrases_dict({u'开户行': [[u'ka1i'], [u'hu4'], [u'hang2']]})
load_phrases_dict({u'俩个':[[u'lia3ng'],[u'ge4']]})
load_phrases_dict({u'发卡行': [[u'fa4'], [u'ka3'], [u'hang2']]})
load_phrases_dict({u'放款行': [[u'fa4ng'], [u'kua3n'], [u'hang2']]})
load_phrases_dict({u'茧行': [[u'jia3n'], [u'hang2']]})
load_phrases_dict({u'行号': [[u'hang2'], [u'ha4o']]})
load_phrases_dict({u'行政': [[u'xing2'], [u'zhen4g']]})
load_phrases_dict({u'行政': [[u'xing2'], [u'zheng4']]})
load_phrases_dict({u'各地': [[u'ge4'], [u'di4']]})
load_phrases_dict({u'借还款': [[u'jie4'], [u'hua2n'], [u'kua3n']]})
load_phrases_dict({u'时间为': [[u'shi2'], [u'jia1n'], [u'we2i']]})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册