Created
August 7, 2020 08:33
-
-
Save sid321axn/73373f534e7ea6d79c2d98e58eb92b07 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# note that we set trainable = False so as to keep the embeddings fixed | |
embedding_layer = Embedding( | |
num_words, | |
EMBEDDING_DIM, | |
weights=[embedding_matrix], | |
input_length=MAX_SEQUENCE_LENGTH, | |
trainable=False | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment