Guest User

Untitled

a guest
Dec 12th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. from keras.preprocessing.text import Tokenizer
  2. tokenizer = Tokenizer(num_words=n_most_common_words, filters='!"#$%&()*+,-./:;<=>?@[]^_`{|}~', lower=True)
  3. tokenizer.fit_on_texts(concated['TITLE'].values)
  4. txt = ["bisnis di indonesia sangat maju"]
  5. seq = list(tokenizer.texts_to_sequences_generator(txt))
Add Comment
Please, Sign In to add comment