A Fast SymSpell port for python written in C++ using pybind11.
Project description
SymSpellCppPy
A Fast SymSpell v6.5 port for python written in C++ using pybind11.
Installation
pip install --upgrade SymSpellCppPy
Documentation
- Check examples for provided usage.
- Check api docs for detailed API documentation.
- Check
tests/SymSpellCppPyTest.py
for extended api usage.
Benchmark Results
Run on AMD 5900x
pip install pytest pytest-benchmark symspellpy SymSpellCppPy
pytest benchmark.py --benchmark-compare
Development
git clone git@github.com:viig99/SymSpellCppPy.git
cd SymSpellCppPy
mkdir -p build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j$(nproc)
Testing
Python Bindings
Build
python3 setup.py build
Test
Python tests
python3 setup.py test
C++ tests
For detailed list of command line test flags please refer to Catch 2 Docs
cd build
./Catch2Test -s
Acknowledgements
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
SymSpellCppPy-0.0.15.tar.gz
(5.4 MB
view details)
File details
Details for the file SymSpellCppPy-0.0.15.tar.gz
.
File metadata
- Download URL: SymSpellCppPy-0.0.15.tar.gz
- Upload date:
- Size: 5.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 519f761fd2bef7b200b3a20dbcbce48134431882de66ec5c8041bfebef5b00e8 |
|
MD5 | 1d34fa60afe7a23f163c1bd2343c6d7a |
|
BLAKE2b-256 | eb62f57b9b171d2d58ea6cb3e36cc6773fd57708b0c5ddd2f92236be5197371c |