class_docstr: Base class for all text based default handler.
  Contains various text based utility methods
class_docstr_tok: ["Base","class","for","all","text","based","default","handler",".","Contains","various","text","based","utility","methods"]
docstr: Expands the contracted words in the text
docstr_tok: ["Expands","the","contracted","words","in","the","text"]
code: def _expand_contractions(self, text):
      """
      Expands the contracted words in the text
      """
  
      def expand_match(contraction):
          match = contraction.group(0)
          first_char = match[0]
          expanded_contraction = (
              CONTRACTION_MAP.get(match)
              if CONTRACTION_MAP.get(match)
              else CONTRACTION_MAP.get(match.lower())
          )
          expanded_contraction = first_char + expanded_contraction[1:]
          return expanded_contraction
  
      text = CONTRACTIONS_PATTERN.sub(expand_match, text)
      text = re.sub("'", "", text)
      return text
  
imports: import logging
  import os
  import re
  import string
  import unicodedata
  from abc import ABC
  import torch
  import torch.nn.functional
  from captum.attr import LayerIntegratedGradients
  from torchtext.data.utils import get_tokenizer
  from ..utils.util import CLEANUP_REGEX
  from .base_handler import BaseHandler
  from .contractions import CONTRACTION_MAP
label_desc: Use image node_id 4 for calling the TextHandler obj's underlying member method code with example usage: obj._expand_contractions(text) and returns: text, expanded_contraction