Created
June 10, 2020 10:51
-
-
Save ferrygun/de18b7228f83e2bbf8149675024ac72e 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
max_len = 50 | |
# value = n-words-1 which is 'ENDPAD'or index 35178 | |
X = pad_sequences(maxlen=max_len, sequences=X, padding="post", value=n_words - 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment