Skip to content

Instantly share code, notes, and snippets.

@ferrygun
Created June 10, 2020 10:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ferrygun/faa59325fcab70a46e81e737bce6f7b8 to your computer and use it in GitHub Desktop.
Save ferrygun/faa59325fcab70a46e81e737bce6f7b8 to your computer and use it in GitHub Desktop.
word2idx = {w: i for i, w in enumerate(words)}
tag2idx = {t: i for i, t in enumerate(tags)}
idx2word = {i: w for w, i in word2idx.items()}
idx2tag = {i: w for w, i in tag2idx.items()}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment