code: def __init__(self):
      self._re = [
          # language-dependent part (assuming Western languages)
          (re.compile(r"([\{-\~\[-\` -\&\(-\+\:-\@\/])"), r" \1 "),
          # tokenize period and comma unless preceded by a digit
          (re.compile(r"([^0-9])([\.,])"), r"\1 \2 "),
          # tokenize period and comma unless followed by a digit
          (re.compile(r"([\.,])([^0-9])"), r" \1 \2"),
          # tokenize dash when preceded by a digit
          (re.compile(r"([0-9])(-)"), r"\1 \2 "),
          # one space only between words
          # NOTE: Doing this in Python (below) is faster
          # (re.compile(r'\s+'), r' '),
      ]
  
file_path: evaluate/metrics/bleu/tokenizer_13a.py
imports: import re
  from functools import lru_cache
label_desc: Use image node_id 2 to create a new TokenizerRegexp object from inherited base classes: BaseTokenizer with example: obj = TokenizerRegexp()