Skip to content

Instantly share code, notes, and snippets.

@bluedistro
Created December 31, 2018 14:25
Show Gist options
  • Save bluedistro/86043556f7ca0f864e3e362386c5281d to your computer and use it in GitHub Desktop.
Save bluedistro/86043556f7ca0f864e3e362386c5281d to your computer and use it in GitHub Desktop.
Decode Vectorized data
# 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