Data Science Asked on March 7, 2021
In Keras, we mainly have three types of preprocessing, i.e., sequence preprocessing, text preprocessing, and image preprocessing. However, for me, I think the meanings of the word "sequence" and "text" are the same. How to understand the differences between these two preprocessing operations?
In tf.keras.preprocessing.text
(docs) you have utilities to process discrete token sequences, normally used to represent text.
In tf.keras.preprocessing.sequence
(docs) you have utilities to process both continuous value sequences (normally used to represent time series) like TimeSeriesGenerator
, and discrete token sequences (i.e. text), like the skipgrams
function.
Correct answer by noe on March 7, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP