Created
April 24, 2019 20:25
-
-
Save alinazhanguwo/75f7d8097db4c2d07293331122a62962 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
max_fatures = 2000 | |
tokenizer = Tokenizer(num_words=max_fatures, split=' ') | |
tokenizer.fit_on_texts(X) | |
X = tokenizer.texts_to_sequences(X) | |
X = pad_sequences(X) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment