TF 2.0 is out! Get hands-on practice at TF World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

Module: tf.compat.v2.keras.preprocessing.text

TensorFlow 1 version

Utilities for text input preprocessing.

Classes

class Tokenizer: Text tokenization utility class.

Functions

hashing_trick(...): Converts a text to a sequence of indexes in a fixed-size hashing space.

one_hot(...): One-hot encodes a text into a list of word indexes of size n.

text_to_word_sequence(...): Converts a text to a sequence of words (or tokens).