Skip to content

Instantly share code, notes, and snippets.

@eustin
Created May 25, 2020 22:20
Show Gist options
  • Save eustin/88d2ccad7c815f7a033ebdce2b8be6b7 to your computer and use it in GitHub Desktop.
Save eustin/88d2ccad7c815f7a033ebdce2b8be6b7 to your computer and use it in GitHub Desktop.
index_word = {i: x for i, x in enumerate(tokens)}
print(index_word)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment