# Module: tf.compat.v1.keras.preprocessing.sequence

<br />

Utilities for preprocessing sequence data.

## Classes

[`class TimeseriesGenerator`](https://www.tensorflow.org/versions/r2.0/api_docs/python/tf/keras/preprocessing/sequence/TimeseriesGenerator): Utility class for generating batches of temporal data.

## Functions

[`make_sampling_table(...)`](https://www.tensorflow.org/versions/r2.0/api_docs/python/tf/keras/preprocessing/sequence/make_sampling_table): Generates a word rank-based probabilistic sampling table.

[`pad_sequences(...)`](https://www.tensorflow.org/versions/r2.0/api_docs/python/tf/keras/preprocessing/sequence/pad_sequences): Pads sequences to the same length.

[`skipgrams(...)`](https://www.tensorflow.org/versions/r2.0/api_docs/python/tf/keras/preprocessing/sequence/skipgrams): Generates skipgram word pairs.