# Possible error in Guide?

**URL:** <https://discuss.ai.google.dev/t/possible-error-in-guide/30475>\
**Category:** General Discussion\
**Tags:** docs, help\_request\
**Created:** [June 9, 2023, 12:10am UTC](https://discuss.ai.google.dev/t/possible-error-in-guide/30475 "2023-06-09T00:10:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mah\_Neh](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/mah_neh/32/11663_2.png) [@Mah\_Neh](https://discuss.ai.google.dev/u/Mah_Neh)\
**Post date:** [June 9, 2023, 12:10am UTC](https://discuss.ai.google.dev/t/possible-error-in-guide/30475/1 "2023-06-09T00:10:37Z")

</div>

> **[Basic text classification  |  TensorFlow Core](https://www.tensorflow.org/tutorials/keras/text_classification#prepare_the_dataset_for_training)**

The example shows this line:

```auto
def custom_standardization(input_data):
  lowercase = tf.strings.lower(input_data)
  stripped_html = tf.strings.regex_replace(lowercase, '<br />', ' ')
  return tf.strings.regex_replace(stripped_html,
                                  '[%s]' % re.escape(string.punctuation),
                                  '')

```

And it seems that `string.punctuation` cant be right, I presume it is `tf.string.punctuation`

---

<div class="post-metadata">

**Author:** ![chunduriv](https://avatars.discourse-cdn.com/v4/letter/c/bbe5ce/32.png) [@chunduriv](https://discuss.ai.google.dev/u/chunduriv)\
**Post date:** [June 9, 2023, 5:52am UTC](https://discuss.ai.google.dev/t/possible-error-in-guide/30475/3 "2023-06-09T05:52:25Z")

</div>

@Mah_Neh,

The `string.punctuation` which is used in the code block is not from Tensorflow ecosystem.

It is imported from the `string` library available in python.

Please refer to the import libraries section in the tutorial.

 ![image](https://d3qe71uytubmmx.cloudfront.net/original/2X/5/5861144b2c68c1b7d2bd392b68fb50cbc53d809d.png)

Thank you!
