Advertisement
neo01124

ipython

Oct 14th, 2012
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. In [1]: from hyphen import Hyphenator, dict_info
  2.  
  3. In [2]: hyph = Hyphenator ('hi_IN', directory='/home/neo')
  4.  
  5. In [5]: inp = u'हिन्दी '
  6.  
  7. In [6]: hyph.syllables(inp)
  8. Out[6]: [u'\xe0\xa4\xb9\xe0\xa4\xbf\xe0\xa4\xa8\xe0\xa5\x8d\xe0\xa4\xa6\xe0\xa5\x80 ']
  9.  
  10. In [7]: hyph.pairs(inp)
  11. Out[7]: []
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement