Skip to content

Repository files navigation

Spell-checking utility for Tibetan

Usage

>>> from bospell import SpellCheck

>>> profile = 'pybo_raw_content'
>>> sc = SpellCheck(profile)

>>> text = '༄༅།།ཆོས་ཀྱི་སྐུ་ལ་གནས་པའི་ཡོན་ཏན་ཐུན་མོང་མ་ཡིན་པ་ལ་བསྟོད་པ། ༄༅༅།།ཆོས་ཀྱི་སྐུ་ལ་གནས་པའི་ཡོན་ཏན་ཐུན་མོང་མ་ཡིན་པ་ལ་བསྟོད་པ། དེ་བཞིན་གཤེགས་པ་ཐམས་ཅད་ལ་ཕྱག་འཚལ་ལོ། །'
>>> out = sc.check(text)

>>> print(out)
༄༅།། ཆོསཀྱིསྐུགནས འིཡོནཏནཐུནམོངཡིནབསྟོད ། ༄༅༅།། ཆོསཀྱིསྐུགནས འིཡོནཏནཐུནམོངཡིནབསྟོདདེབཞིནགཤེགསཐམསཅདཕྱགའཚལལོ ། ། 
>>> from bospell import CheckFile

>>> profile = 'pybo_raw_types'
>>> cf = CheckFile(profile)

>>> cf.check_file('input.file')

Build your own pipeline

Check for bospell.yaml in the folder where check() was called for examples.

Read the four pipe's readmes for all the available components and what they do preprocessing, tokenizing, processing, formatting.

Contributing

How to contribute is explained here.

License

The Python code is Copyright (C) 2018 Esukhia, provided under MIT License.

Resources

https://github.com/Esukhia/bophono

About

An application of PyBo to Tibetan Spell-Checking

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages