Spell checking toolkit for Tibetan (boyig)
Project description
Bospell
Spell checking toolkit for Tibetan (Boyig)
Installation
The easiest method to install is using pip:
pip install bospell
To install from source:
git clone https://github.com/Esukhia/bospell.git
cd bospell
python setup.py install
Quickstart
After installation, using bospell
should be fairly straight forward:
>>> from bospell import Text
>>> text = Text("བོད་པའི་བུ་བཀྲ་ཤིད་")
>>> text.corrected
'བོད་པའི་བུ་བཀྲ་ཤིས'
>>> text.suggestions
{3: Suggestions(candidates=['བཀྲ་ཤིས', 'བཀྲ་ཤིས་པ', 'བཀྲ་ཤིས་མ'], span=Span(start=11, end=19))}
Development
git clone https://github.com/Esukhia/bospell.git
cd bospell
pip install -r requirements.txt
pre-commit install
pip install -e .
Testing
pytest tests
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bospell-0.0.4.tar.gz
(171.0 kB
view hashes)
Built Distribution
bospell-0.0.4-py3-none-any.whl
(173.6 kB
view hashes)