Metadata-Version: 2.1
Name: symspell-rust
Version: 0.1.0
Summary: Fast and Accurate SpellChecker
License: MIT
Keywords: spellcheck
Author: zoho-labs
Requires-Python: >=3.7,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Description-Content-Type: text/markdown

# symspell_rust
Rust python bindings for symspell

## Quick examples using Python:

```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}")
```
