Python SymSpell
Project description
symspellpy
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 forload_dictionary
6.5.0 (2019-09-21)
- Added
load_bigram_dictionary
and bigram dictionaryfrequency_bigramdictionary_en_243_342.txt
- Updated
lookup_compound
algorithm - Added
Levenshtein
to compute edit distance - Added
save_pickle_stream
andload_pickle_stream
to save/load SymSpell data alongside other structure (contribution by marcoffee)
6.3.9 (2019-08-06)
- Added
transfer_casing
tolookup
andlookup_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
inlookup
- Removed unused
initial_capacity
argument - Improved
_get_str_hash
performance - Implemented
save_pickle
andload_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 correctdistance
6.3.4 (2019-01-04)
- Added
<self._replaced_words = dict()>
to track number of misspelled words - Added
ignore_token
toword_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 toload_dictionary()
6.3.1 (2018-08-30)
- Create a package for
symspellpy
6.3.0 (2018-08-13)
- Ported SymSpell v6.3
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
symspellpy-6.7.0.tar.gz
(2.6 MB
view hashes)
Built Distribution
Close
Hashes for symspellpy-6.7.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b296166f03b5871d2a88d94e8d68e84594b22d5c531b015355d3dc7b9c5127b |
|
MD5 | 4e18c28ea67c8fc8825612ac5a5cfebb |
|
BLAKE2b-256 | 99afe71fcca6a42b6a63f518b0c1627e1f67822815cb0cf71e6af05acbd75c78 |