Skip to content

Instantly share code, notes, and snippets.

@rajeshmr
Created December 7, 2017 10:28
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 rajeshmr/c2cee8ee1f835ac4d958261e2c65c8ff to your computer and use it in GitHub Desktop.
Save rajeshmr/c2cee8ee1f835ac4d958261e2c65c8ff to your computer and use it in GitHub Desktop.
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