Skip to main content

Spell checking toolkit for Tibetan (boyig)

Project description

Bospell

PyPI version Test Test Coverage Publish Code style: black

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


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)

Uploaded Source

Built Distribution

bospell-0.0.4-py3-none-any.whl (173.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page