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 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page