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 ...