Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
test_sequence = tokenizer.texts_to_sequences(["sports action camera", "spy pen camera"])
padded_sequence = pad_sequences(test_sequence, maxlen=MAX_SEQUENCE_LENGTH)
print("Text to Vector", test_sequence)
print("Padded Vector", padded_sequence)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment