Created
June 8, 2020 09:13
-
-
Save ferrygun/45b743a5f6192d2e98dc89fedac7940f 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
tokenizer = Tokenizer(num_words = vocab_size, oov_token=oov_tok) | |
tokenizer.fit_on_texts(train_articles) | |
word_index = tokenizer.word_index |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment