Skip to content

Instantly share code, notes, and snippets.

Created Jun 10, 2020
What would you like to do?
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