timmahrt / pysle

Python interface to ISLEX, an English IPA pronunciation dictionary with syllable and stress marking.
Other
47 stars 5 forks source link

add function #9

Closed PasaOpasen closed 4 years ago

PasaOpasen commented 4 years ago

Please add some function like:


transcribe('text') # 'tekst'

transcribe('my friend') # "mai frent"
timmahrt commented 4 years ago

I've implemented something. If you're ok with it, I'll make a release. Please let me know what you think.

sentence = "do you want another pumpkinseed"
phoneList = isletool.transcribe(isleDict, sentence, 'longest')
print(phoneList)

> 'du ju want ənʌðəɹ pʌmpkɪnsid'

https://github.com/timmahrt/pysle/pull/10

PasaOpasen commented 4 years ago

Yes it's all I need, I will wait ur release

timmahrt commented 4 years ago

Ok, I've released version 2.1.0. After upgrading, please let me know if you have any feedback. If its good, please close this issue. Thanks!