Created
February 11, 2021 12:08
-
-
Save AlexMikhalev/16e31d4a31a3a5fef03079f14fbf85eb to your computer and use it in GitHub Desktop.
RedisGears3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global sym_spell | |
if not sym_spell: | |
sym_spell=load_symspell() | |
suggestions = sym_spell.lookup_compound(sentence['value'], max_edit_distance=1, | |
transfer_casing=True, ignore_non_words=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment