<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/datasets/blob/v4.9.10/tensorflow_datasets/core/deprecated/text/__init__.py) |

Text utilities.

[`tfds`](https://www.tensorflow.org/datasets/api_docs/python/tfds) includes a set of `TextEncoder`s as well as a `Tokenizer` to enable
expressive, performant, and reproducible natural language research.

## Classes

[`class ByteTextEncoder`](https://www.tensorflow.org/datasets/api_docs/python/tfds/deprecated/text/ByteTextEncoder): Byte-encodes text.

[`class SubwordTextEncoder`](https://www.tensorflow.org/datasets/api_docs/python/tfds/deprecated/text/SubwordTextEncoder): Invertible `TextEncoder` using word pieces with a byte-level fallback.

[`class TextEncoder`](https://www.tensorflow.org/datasets/api_docs/python/tfds/deprecated/text/TextEncoder): Abstract base class for converting between text and integers.

[`class TextEncoderConfig`](https://www.tensorflow.org/datasets/api_docs/python/tfds/deprecated/text/TextEncoderConfig): Configuration for [`tfds.features.Text`](https://www.tensorflow.org/datasets/api_docs/python/tfds/features/Text).

[`class TokenTextEncoder`](https://www.tensorflow.org/datasets/api_docs/python/tfds/deprecated/text/TokenTextEncoder): TextEncoder backed by a list of tokens.

[`class Tokenizer`](https://www.tensorflow.org/datasets/api_docs/python/tfds/deprecated/text/Tokenizer): Splits a string into tokens, and joins them back.