code: def text_standardize(text):
      
      text = text.replace('—', '-')
      text = text.replace('–', '-')
      text = text.replace('―', '-')
      text = text.replace('…', '...')
      text = text.replace('´', "'")
      text = re.sub(r'''(-+|~+|!+|"+|;+|\?+|\++|,+|\)+|\(+|\\+|\/+|\*+|\[+|\]+|}+|{+|\|+|_+)''', r' \1 ', text)
      text = re.sub(r'\s*\n\s*', ' \n ', text)
      text = re.sub(r'[^\S\n]+', ' ', text)
      return text.strip()
docs: Apply text standardization following original implementation.