-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
Thanks for the amazing repository. I realized that your code gives error on a lot of cases when I want to convert from IPA to ARPAbet. For example this one from dictionary abuse:
from arpabetandipaconvertor.phoneticarphabet2arpabet import PhoneticAlphabet2ARPAbetConvertor
ipa_convertor = PhoneticAlphabet2ARPAbetConvertor()
x = ipa_convertor.convert("əˈbyo͞oz")
print(x)
throws this exception:
Traceback (most recent call last):
File "/home/rohola/codes/speechify-nlp/homographs/convert_ipa_arpanet.py", line 7, in <module>
x = ipa_convertor.convert("əˈbyo͞oz")
File "/home/rohola/codes/speechify-nlp/venv/lib/python3.10/site-packages/arpabetandipaconvertor/phoneticarphabet2arpabet.py", line 150, in convert
raise PhonemeError('存在不能识别的音标 %s' % temp_ch)
arpabetandipaconvertor.excepts.PhonemeError: 存在不能识别的音标 yo͞oz
Metadata
Metadata
Assignees
Labels
No labels