Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- # ------------------------------------------------------------------------------
- import sys
- sys.dont_write_bytecode = True;
- import subprocess
- import re
- # ------------------------------------------------------------------------------
- from hyphen import Hyphenator, dict_info
- from hyphen.dictools import *
- hyph = Hyphenator ('hi_IN', directory='/home/neo')
- inp = u'हिन्दी '
- out = hyph.pairs(inp)
- #.decode('utf-8'))
- print (out)
- out1 = hyph.syllables(inp)
- print (out1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement