Last active
April 30, 2022 13:50
-
-
Save neuromaancer/0a6ade406317de4eecfb89eecf9746f1 to your computer and use it in GitHub Desktop.
genereate vocabs from list
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
# docs is 2 dims | |
vocabs = set(itertools.chain.from_iterable(docs)) | |
return vocabs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment