This code is based on symspellpy a Python port of SymSpell v6.3, which provides much higher speed and lower memory consumption.
Samples can be run using
poetry run python samples/simple_spellcheck.py
If you don't have experience with Poetry you may want to first read the introductory guide.
To setup your local environment simply run make bootstrap
and make install
. The virtual environment will be
created by Poetry in .venv
.
This is assuming that you have already configured poetry to push to our internal pypi repo. If not, please refer to the introductory guide.
Make your changes as usual and check the build is green (i.e. the tests are passing).
Once this is done, update to the wanted version using the poetry version
command. Don't forget
to push the updated pyproject.toml
. Finally, you can build and publish the library with poetry
using the publish
command, like so:
poetry publish -r eai-core --build
This will use the poetry config value for repositories.eai-core
and http-basic.eai-core
to
authenticate and upload to the specified repo. So be sure the values are set appropriately
beforehand.
It is also possible to only build with poetry build
.