class_docstr: Transforms input by common abbreviations.
  
  Each sample generate one transformed sample at most.
  
  Example::
  
         "we're playing ping pang ball, you are so lazy. She's so beautiful!"
  
      >> "we are playing ping pang ball, you're so lazy. She is so beautiful!"
docstr: Get expanded phrases which can convert to contractions.
  
  :param list tokens: word list
  :return list indices_list:  indices of expanded phrase
  :return list contractions_list: expanded phrases, contractions
code: def _get_expanded_phrases(self, tokens):
      r"""
      Get expanded phrases which can convert to contractions.
  
      :param list tokens: word list
      :return list indices_list:  indices of expanded phrase
      :return list contractions_list: expanded phrases, contractions
      """
      indices_list = []
      contractions_list = []
      # avoid collision
      skip = False
  
      for i in range(len(tokens)):
          # one sublist less judge to avoid Exception
          if len(tokens) > i + 2:
              if skip:
                  skip = False
                  continue
              phrase_string = " ".join(tokens[i : i + 2])
  
              if phrase_string in self.phrases:
                  skip = True
                  indices_list.append([i, i + 2])
                  contractions_list.append(self.phrases[phrase_string])
  
      return indices_list, contractions_list
  
file_path: textflint/textflint/generation/transformation/UT/contraction.py
imports: from ...transformation import Transformation
  from ....common.settings import CONTRACTION_PHRASES
label_desc: Use image node_id 5 for calling the Contraction obj's underlying member method code with example usage: obj._get_expanded_phrases(tokens) and returns: indices_list,  contractions_list