add filter for double punctuation, revise comment ;

add homonym, fix mistakes
pull/2235/head
david.95 2 years ago
parent 1edd474bcb
commit a48e4f249f

@ -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']]})

Loading…
Cancel
Save