LibIndic's syllabifier module may be used to split words into their constituent syllables. It currently works for Malayalam, Kannada, Bengali, Tamil, Hindi and English.
- Clone the repository
git clone https://github.com/libindic/syllabalizer.git
- Change to the cloned directory
cd syllabalizer
- Run setup.py to create installable source
python setup.py sdist
- Install using pip
pip install dist/libindic-syllabifier*.tar.gz
>>> from libindic.syllabifier import Syllabifier
>>> instance = Syllabifier()
>>> result = instance.syllabify(u"കാര്യക്ഷമത")
>>> for syllable in result:
... print(syllable)
...
കാ
ര്യ
ക്ഷ
മ
ത
For more details read the docs