Skip to content

thantthet/MyanmarParser-Py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

MyanmarParser-Py

This is the python version of https://github.com/thanlwinsoft/MyanmarParser

Usage

from myparser import MyParser

m = MyParser()

str = u'နေကောင်းရဲ့လား'
offset = 0 

while offset < len(str):
	breaktype, next_offset = m.get_next_syllable(str, len(str), offset) # parse
	print str[offset:next_offset] # extract syllable using start offset and end offset
	offset = next_offset
	
# prints
# နေ
# ကောင်း
# ရဲ့
# လား

About

A python script to break down (currently only) Burmese syllable

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages