class_docstr: Ad-hoc hack to recognize all punctuation and symbols.
class_docstr_tok: ["Ad-hoc","hack","to","recognize","all","punctuation","and","symbols","."]
code: def __init__(self):
      punctuation = self.property_chars("P")
      self.nondigit_punct_re = re.compile(
          r"([^\d])([" + punctuation + r"])"
      )
      self.punct_nondigit_re = re.compile(
          r"([" + punctuation + r"])([^\d])"
      )
      self.symbol_re = re.compile(
          "([" + self.property_chars("S") + "])"
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  import math
  import os
  import re
  import sys
  import time
  import unicodedata
  import numpy
  import six
  from six.moves import range
  from six.moves import zip
  from tensor2tensor.data_generators import text_encoder
  import tensorflow.compat.v1
label_desc: Use image node_id 1 to create a new UnicodeRegex object from inherited base classes: object with example: obj = UnicodeRegex()