Skip to content

Instantly share code, notes, and snippets.

@sleepless-se
Last active February 12, 2019 01:28
Show Gist options
  • Save sleepless-se/40f47e5865ae7c9974d3c79e39188eb9 to your computer and use it in GitHub Desktop.
Save sleepless-se/40f47e5865ae7c9974d3c79e39188eb9 to your computer and use it in GitHub Desktop.
Keras word_index to index2word dict
index2word = {i+1:key for i, key in enumerate(token.word_index)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment