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 details)
Built Distribution
bospell-0.0.4-py3-none-any.whl
(173.6 kB
view details)
File details
Details for the file bospell-0.0.4.tar.gz
.
File metadata
- Download URL: bospell-0.0.4.tar.gz
- Upload date:
- Size: 171.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60e7d978b68c579c92f4c34bc7ae9db3ffa2a43e9de791c9982c1bcbee562b8f |
|
MD5 | 812524696912b4951ae64434e19986ae |
|
BLAKE2b-256 | 66e3611cbd940fe1e3568657684a87ec15e0a78dac9763f5d222fecd6be15f36 |
File details
Details for the file bospell-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: bospell-0.0.4-py3-none-any.whl
- Upload date:
- Size: 173.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5cae1ac6f817e8c04142d4bac0ca71737565864793a06c33ba79045be29e00b1 |
|
MD5 | 0ed469696f1579290fe9c44eed559dc3 |
|
BLAKE2b-256 | 96648d2c5e56f6fbb24a74c41ecc3aa534d544d4bbd662cb0b79af42cadecd2b |