Skip to content

Instantly share code, notes, and snippets.

@AlexMikhalev
Created February 11, 2021 12:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexMikhalev/16e31d4a31a3a5fef03079f14fbf85eb to your computer and use it in GitHub Desktop.
Save AlexMikhalev/16e31d4a31a3a5fef03079f14fbf85eb to your computer and use it in GitHub Desktop.
RedisGears3.py
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