Skip to main content

Python SymSpell

Project description

symspellpy
PyPI version Build Status Documentation Status codecov

symspellpy is a Python port of SymSpell v6.5, which provides much higher speed and lower memory consumption. Unit tests from the original project are implemented to ensure the accuracy of the port.

Please note that the port has not been optimized for speed.

Install

For installation instructions, see the INSTALL.rst file or the install documentation.

Usage

Check out the examples provided for sample usage.

CHANGELOG

6.5.2 (2019-10-23)


  • Modified load_bigram_dictionary to allow dictionary entries to be split into only 2 parts when using a custom separator
  • Added dictionary files to wheels so pkg_resources could be used to access them

6.5.1 (2019-10-08)


  • Added separator argument to allow user to choose custom separator for load_dictionary

6.5.0 (2019-09-21)


  • Added load_bigram_dictionary and bigram dictionary frequency_bigramdictionary_en_243_342.txt
  • Updated lookup_compound algorithm
  • Added Levenshtein to compute edit distance
  • Added save_pickle_stream and load_pickle_stream to save/load SymSpell data alongside other structure (contribution by marcoffee)

6.3.9 (2019-08-06)


  • Added transfer_casing to lookup and lookup_compound
  • Fixed prefix length check in _edits_prefix

6.3.8 (2019-03-21)


  • Implemented delete_dictionary_entry
  • Improved performance by using python builtin hashing
  • Added versioning of the pickle

6.3.7 (2019-02-18)


  • Fixed include_unknown in lookup
  • Removed unused initial_capacity argument
  • Improved _get_str_hash performance
  • Implemented save_pickle and load_pickle to avoid having to create the dictionary every time

6.3.6 (2019-02-11)


  • Added create_dictionary() feature

6.3.5 (2019-01-14)


  • Fixed lookup_compound() to return the correct distance

6.3.4 (2019-01-04)


  • Added <self._replaced_words = dict()> to track number of misspelled words
  • Added ignore_token to word_segmentation() to ignore words with regular expression

6.3.3 (2018-12-05)


  • Added word_segmentation() feature

6.3.2 (2018-10-23)


  • Added encoding option to load_dictionary()

6.3.1 (2018-08-30)


  • Create a package for symspellpy

6.3.0 (2018-08-13)


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

symspellpy-6.7.0.tar.gz (2.6 MB view details)

Uploaded Source

Built Distribution

symspellpy-6.7.0-py3-none-any.whl (2.6 MB view details)

Uploaded Python 3

File details

Details for the file symspellpy-6.7.0.tar.gz.

File metadata

  • Download URL: symspellpy-6.7.0.tar.gz
  • Upload date:
  • Size: 2.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3

File hashes

Hashes for symspellpy-6.7.0.tar.gz
Algorithm Hash digest
SHA256 d06d50db8bf0907998689b2fd2fb1c26c660cde7a4d2ffb67efc5ae5e3763905
MD5 28204ae1fd35c4a3512c46c92f00055d
BLAKE2b-256 34125adaecab0ab0122a70ec1cca5ff177bff1f5fc2c352b067026ad357a64ee

See more details on using hashes here.

File details

Details for the file symspellpy-6.7.0-py3-none-any.whl.

File metadata

  • Download URL: symspellpy-6.7.0-py3-none-any.whl
  • Upload date:
  • Size: 2.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3

File hashes

Hashes for symspellpy-6.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4b296166f03b5871d2a88d94e8d68e84594b22d5c531b015355d3dc7b9c5127b
MD5 4e18c28ea67c8fc8825612ac5a5cfebb
BLAKE2b-256 99afe71fcca6a42b6a63f518b0c1627e1f67822815cb0cf71e6af05acbd75c78

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page