tf.keras.layers.StringLookup | TensorFlow Core v2.7.0
www.tensorflow.org › tf › kerasThis layer translates a set of arbitrary strings into integer output via a table-based vocabulary lookup. The vocabulary for the layer must be either supplied on construction or learned via adapt (). During adapt (), the layer will analyze a data set, determine the frequency of individual strings tokens, and create a vocabulary from them.
StringLookup layer - Keras
https://keras.io/api/layers/preprocessing_layers/categorical/string_lookuptf.keras.layers.StringLookup( max_tokens=None, num_oov_indices=1, mask_token=None, oov_token=" [UNK]", vocabulary=None, idf_weights=None, encoding=None, invert=False, output_mode="int", sparse=False, pad_to_max_tokens=False, **kwargs ) A preprocessing layer which maps string features to integer indices. This layer translates a set of arbitrary ...