Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In [1]: from hyphen import Hyphenator, dict_info
- In [2]: hyph = Hyphenator ('hi_IN', directory='/home/neo')
- In [5]: inp = u'हिन्दी '
- In [6]: hyph.syllables(inp)
- Out[6]: [u'\xe0\xa4\xb9\xe0\xa4\xbf\xe0\xa4\xa8\xe0\xa5\x8d\xe0\xa4\xa6\xe0\xa5\x80 ']
- In [7]: hyph.pairs(inp)
- Out[7]: []
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement