3

What is the difference between the layers.TextVectorization() and

from tensorflow.keras.preprocessing.text import Tokenizer
from tensorflow.keras.preprocessing.sequence import pad_sequences

And when to use what ?

Pritam Sinha
  • 193
  • 8

1 Answers1

5

Tokenization is the process of splitting a stream of language into individual tokens.

Vectorization is the process of converting string data into a numerical representation.

Brian Spiering
  • 20,142
  • 2
  • 25
  • 102