symspell_rust
Rust python bindings for symspell
Usage
pip install symspell_rust
Quick examples using Python:
>>> from symspell_rust import SymspellPy
>>> sym_spell = SymspellPy(max_distance=2, prefix_length=7, count_threshold=1)
>>> if not sym_spell.load_dictionary("./data/frequency_dictionary_en_82_765.txt",0,1," "):
print("File Not Found")
>>> suggestions = sym_spell.lookup_compound("whereis th elove hehad dated forImuch of thepast who couqdn'tread in sixtgrade and ins pired him",2)
>>> for cand in suggestions:
print(f"Term->{cand.term} \n Distance->{cand.distance} \n Count->{cand.count}")
>>> segment_obj = sym_spell.word_segmentation("whereisthelove",2)
>>> print(f"String->{segment_obj.segmented_string} \n Distance->{segment_obj.distance_sum} \n Prob_Log_Sum->{segment_obj.prob_log_sum}")
Release files for symspell-rust 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| symspell_rust-0.3.0.tar.gz | 3.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| symspell_rust-0.3.0-cp39-cp39-win_amd64.whl | CPython 3.9 | CPython 3.9 | Windows x86-64 | Details |
Total release size: 153.8 kB
Release files / symspell_rust-0.3.0.tar.gz
| Download URL | symspell_rust-0.3.0.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5fd28a5dd0b24448dbcb298449384e962727e64aa97e3a3b978a69e1c16ecec4
|
|
BLAKE2b-256 checksum How to use checksums |
bd9c04053193c0cc7b61da5050d6f6ec0f11c9495ad5ce39bbccf6bd96e5a899
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1
|
Release files / symspell_rust-0.3.0-cp39-cp39-win_amd64.whl
| Download URL | symspell_rust-0.3.0-cp39-cp39-win_amd64.whl |
|---|---|
| Size | 150.3 kB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
4deecf3aa319b362917bebb4aaf1e42753edee5f9f9adfa96b3defa2a92e4aa1
|
|
BLAKE2b-256 checksum How to use checksums |
660105e9e60c7079c6756b59182b23b211d020c6ee2a67d7689ac0b9d686cc7c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1
|