Skip to content

Instantly share code, notes, and snippets.

@mzaradzki
Created April 4, 2017 08:06
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 mzaradzki/351c04d098814ee6e3adb84a90e69867 to your computer and use it in GitHub Desktop.
Save mzaradzki/351c04d098814ee6e3adb84a90e69867 to your computer and use it in GitHub Desktop.
if pretrained:
EMBEDDING = Embedding(vocab_size,
embedding_dimension,
weights=[glove_embedding_matrix])
else:
EMBEDDING = Embedding(vocab_size,
embedding_dimension)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment