# tff.simulation.datasets.shakespeare.get_synthetic

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/federated/blob/v0.87.0 Version 2.0, January 2004 Licensed under the Apache License, Version 2.0 (the) |

Creates [`tff.simulation.datasets.ClientData`](https://www.tensorflow.org/federated/api_docs/python/tff/simulation/datasets/ClientData) for a synthetic in-memory example of Shakespeare.

    tff.simulation.datasets.shakespeare.get_synthetic() -> https://www.tensorflow.org/federated/api_docs/python/tff/simulation/datasets/ClientData

The returned [`tff.simulation.datasets.ClientData`](https://www.tensorflow.org/federated/api_docs/python/tff/simulation/datasets/ClientData) will have the same data
schema as `load_data()`, but uses a very small set of client data loaded
in-memory.

This synthetic data is useful for validation in small tests.

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A [`tff.simulation.datasets.ClientData`](https://www.tensorflow.org/federated/api_docs/python/tff/simulation/datasets/ClientData) of synthentic Shakespeare text. ||

<br />