class_docstr: Replace word with reduplication such as AABB or ABAB.
  
  Example::
  
      朦胧的月色 -> 朦朦胧胧的月色
docstr: In this function, because there is only one deformation mode,
      only one set of outputs is output.
  
  :param ~textflint.CWSSample: 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=5, **kwargs):
      r"""
      In this function, because there is only one deformation mode,
          only one set of outputs is output.
  
      :param ~textflint.CWSSample: 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 token
      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/reduplication.py
imports: from ..transformation import Transformation
  from ....common.settings import AABB_PATH, ABAB_PATH
  from ....common.utils.load import plain_lines_loader
  from ....common.utils.install import download_if_needed
label_desc: Use image node_id 3 for calling the Reduplication obj's underlying member method code with example usage: obj._transform(sample, n) and returns: list, list