-
Notifications
You must be signed in to change notification settings - Fork 157
Open
Description
Thanks for the job.
I have download the mandarin cedict file and tried the example code
`from epitran.backoff import Backoff
backoff = Backoff(['hin-Deva', 'eng-Latn', 'cmn-Hans'], cedict_file=‘cedict_1_0_ts_utf-8_mdbg.txt')
backoff.transliterate('हिन्दी')
'ɦindiː'
backoff.transliterate('English')
'ɪŋɡlɪʃ'
backoff.transliterate('中文')
'ʈ͡ʂoŋwən'`
But when I use backoff to transliterate an English word, It raise Exception:
"""
arpa_text = arpa_text.splitlines()[0]
Index out of range
"""
When I input Chinese, it can convert output of the form PinYin but not IPA.
How to make IPA output when my input is a sentence of bilingural-English-Chinese characters?
Metadata
Metadata
Assignees
Labels
No labels