dmort27 / epitran

A tool for transcribing orthographic text as IPA (International Phonetic Alphabet)
MIT License
630 stars 121 forks source link

Handing of hetronyms #85

Open JCGoran opened 3 years ago

JCGoran commented 3 years ago

Disclaimer: I'm not a linguist, so maybe this is a dumb question. How are heteronyms handled in epitran? I haven't found any references to them in the repo or the paper. For instance, this code:

epi = epitran.Epitran('eng-Latn')
print(epi.transliterate('live'))

outputs lajv, so I'm curious how does it decide to use this pronunciation instead of lɪv.