Skip to content

Instantly share code, notes, and snippets.

@vivekpadia70
Created April 8, 2020 11:33
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 vivekpadia70/efe0aaaf0686c839091b64d1315dd160 to your computer and use it in GitHub Desktop.
Save vivekpadia70/efe0aaaf0686c839091b64d1315dd160 to your computer and use it in GitHub Desktop.
tokenizer = Tokenizer(num_words=10000)
tokenizer.fit_on_texts(df['review'])
vector = tokenizer.texts_to_sequences(df['review'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment