Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 1.07 KB

README.md

File metadata and controls

33 lines (26 loc) · 1.07 KB

LibIndic Syllabifier

Build Status Coverage Status

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.

Installation

  1. Clone the repository git clone https://github.com/libindic/syllabalizer.git
  2. Change to the cloned directory cd syllabalizer
  3. Run setup.py to create installable source python setup.py sdist
  4. Install using pip pip install dist/libindic-syllabifier*.tar.gz

Usage

>>> from libindic.syllabifier import Syllabifier
>>> instance = Syllabifier()
>>> result = instance.syllabify(u"കാര്യക്ഷമത")
>>> for syllable in result:
...     print(syllable)
...
കാ
ര്യ
ക്ഷ
മ
ത

For more details read the docs