# tfdv.write_anomalies_text

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/data-validation/blob/v1.16.1/tensorflow_data_validation/utils/anomalies_util.py#L109-L126) |

Writes the Anomalies proto to a file in text format.

    tfdv.write_anomalies_text(
        anomalies: anomalies_pb2.Anomalies, output_path: Text
    ) -> None

<br />

<br />

<br />

| ## Args ||
|---|---|
| `anomalies` | An Anomalies protocol buffer. |
| `output_path` | File path to which to write the Anomalies proto. |

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `TypeError` | If the input Anomalies proto is not of the expected type. |

<br />