class_docstr: Replace abbreviations with full names.
  
  Example::
  
      央视 -> 中央电视台
class_docstr_tok: ["Replace","abbreviations","with","full","names",".","Example",":",":","\u592e\u89c6","-",">","\u4e2d\u592e\u7535\u89c6\u53f0"]
docstr: Transform the sample.
  
  :param ~textflint.CWSSample sample: the data which need be changed
  :param **kwargs:
  :return: In this function, because there is only one deformation mode,
      only one set of outputs is output
docstr_tok: ["Transform","the","sample",".",":","param","~textflint.CWSSample","sample",":","the","data","which","need","be","changed",":","param","*","*","kwargs",":",":","return",":","In","this","function",",","because","there","is","only","one","deformation","mode",",","only","one","set","of","outputs","is","output"]
code: def _transform(self, sample, n=1, **kwargs):
      r"""
      Transform the sample.
  
      :param ~textflint.CWSSample sample: the data which need be changed
      :param **kwargs:
      :return: In this function, because there is only one deformation mode,
          only one set of outputs is output
  
      """
      # get sentence and label
      origin_words = sample.get_words()
      # change function
      (
          change_pos,
          change_sentence,
          change_label,
      ) = self._get_transformations(origin_words)
      if len(change_pos) == 0:
          return []
      change_sample = sample.replace_at_ranges(
          change_pos, change_sentence, change_label
      )
  
      return [change_sample]
  
file_path: textflint/textflint/generation/transformation/CWS/swap_contraction.py
imports: from ..transformation import Transformation
  from ....common.settings import abbreviation_path
  from ....common.utils.load import plain_lines_loader
  from ....common.utils.install import download_if_needed
label_desc: Use image node_id 4 for calling the SwapContraction obj's underlying member method code with example usage: obj._transform(sample, n) and returns: list, list