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