StringLookupΒΆ
A preprocessing layer that maps strings to (possibly encoded) indices.
Abstract Signature:
StringLookup(max_tokens: int, num_oov_indices: int = 1, mask_token: str, oov_token: str = [UNK], vocabulary: List[str], invert: bool = False, output_mode: str = int, pad_to_max_tokens: bool = False, sparse: bool = False, encoding: str = utf-8)
PyTorch
API:
βStrategy: Plugin (string_lookup_shim)
JAX (Core)
API:
βStrategy: Plugin (string_lookup_shim)
Flax NNX
API:
βStrategy: Plugin (string_lookup_shim)