Created
December 31, 2018 14:25
-
-
Save bluedistro/86043556f7ca0f864e3e362386c5281d to your computer and use it in GitHub Desktop.
Decode Vectorized data
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
# decode the words | |
reverse_word_index = dict([(value, key) for (key, value) in word_index.items()]) | |
decoded_review = ' '.join([reverse_word_index.get(i, '?') for i in sequences[0]]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment