Created
October 19, 2021 10:23
-
-
Save Hkazanci93/f19cf6067be140fe2fe5fed599e66e09 to your computer and use it in GitHub Desktop.
Pre-processing task that uses RedisGears
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
gb = GB('KeysReader') | |
gb.filter(filter_language) | |
gb.flatmap(parse_paragraphs) | |
gb.map(spellcheck_sentences) | |
gb.foreach(save_sentences) | |
gb.count() | |
gb.register('paragraphs:*',keyTypes=['string','hash'], mode="async_local") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment