code: def normalize_transcript(transcript):
      # remove punctuation except apostrophes
      transcript = re.sub(
          r"(\.|\,|\?|\!|\-|\:|\;)", " \\1 ", transcript
      )
      transcript = re.sub(r"\.|\,|\?|\!|\-|\:|\;", "", transcript)
      # remove tag (e.g. [LAUGHTER])
      transcript = re.sub(r"\[.+\]", "", transcript)
      # Detect valid apostrophe cases and split those into two words
      transcript = re.sub("([a-z])'([a-z])", "\\1 '\\2", transcript)
      # Clean up special cases of standalone apostrophes
      transcript = re.sub("([a-z])' ", "\\1 ", transcript)
      # remove extra spaces
      transcript = re.sub(" +", " ", transcript)
      # remove space at the beginning of the utterance
      transcript = re.sub("^ ", "", transcript)
      return transcript
  
file_path: espnet/egs2/swbd_sentiment/asr1/local/prepare_sentiment.py
imports: import argparse
  import math
  import os
  import re
label_desc: Use image node_id 3 for calling a global function with example usage: normalize_transcript(transcript) and returns: transcript