Skip to content

Instantly share code, notes, and snippets.

@ferrygun
Created June 10, 2020 10:47
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/598360fc8261b5f964140cbb0b98e6f2 to your computer and use it in GitHub Desktop.
Save ferrygun/598360fc8261b5f964140cbb0b98e6f2 to your computer and use it in GitHub Desktop.
X = [[word2idx[w[0]] for w in s] for s in sentences]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment