Skip to content

universal syllabification algorithms

License

Notifications You must be signed in to change notification settings

finguist/syllabipy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

syllabipy

Collection of syllabification algorithms designed to be universal, aimed at low-resource languages without look-up techniques. No dependencies.

LegaliPy and SonoriPy have been incorporated into the Talisman NLP library for JavaScript.

installation

syllabipy can be installed with pip:

$ pip install syllabipy

LegaliPy

To get legal onsets for variable text:

>>> from syllabipy.legalipy import getOnsets
>>> getOnsets(text)

To syllabify a word:

>>> from syllabipy.legalipy import LegaliPy
>>> LegaliPy(word, getOnsets(text))

Command line usage to syllabify a text file:

$ python legalipy.py text.txt

SonoriPy

To syllabify a word:

>>> from syllabipy.sonoripy import SonoriPy
>>> SonoriPy("justification")
['jus', 'ti', 'fi', 'ca', 'tion']

Command line usage to syllabify a text file:

$ python sonoripy.py text.txt

About

universal syllabification algorithms

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%