class_docstr: Make short numbers grow into long numbers.
  
  Example::
  
      九百 -> 八百九十九
class_docstr_tok: ["Make","short","numbers","grow","into","long","numbers",".","Example",":",":","\u4e5d\u767e","-",">","\u516b\u767e\u4e5d\u5341\u4e5d"]
docstr: We randomly generated five sets of data.
  
  :param ~textflint.CWSSample sample: the data which need be changed
  :param int n: number of generated data
  :param **kwargs:
  :return: trans_sample a list of sample
docstr_tok: ["We","randomly","generated","five","sets","of","data",".",":","param","~textflint.CWSSample","sample",":","the","data","which","need","be","changed",":","param","int","n",":","number","of","generated","data",":","param","*","*","kwargs",":",":","return",":","trans_sample","a","list","of","sample"]
code: def _transform(self, sample, n=5, **kwargs):
      r"""
      We randomly generated five sets of data.
  
      :param ~textflint.CWSSample sample: the data which need be changed
      :param int n: number of generated data
      :param **kwargs:
      :return: trans_sample a list of sample
      """
      # get sentence and label
      origin_sentence = sample.get_value("x")
      origin_label = sample.get_value("y")
      trans_sample = []
  
      for i in range(n):
          # change function
          (
              change_pos,
              change_sentence,
              change_label,
          ) = self._get_transformations(origin_sentence, origin_label)
          if len(change_pos) == 0:
              return []
          change_sample = sample.replace_at_ranges(
              change_pos, change_sentence, change_label
          )
          trans_sample.append(change_sample)
  
      return trans_sample
  
file_path: textflint/textflint/generation/transformation/CWS/cn_swap_num.py
imports: import random
  from ..transformation import Transformation
  from ....common.settings import NUM_LIST, NUM_FLAG1, NUM_FLAG2, NUM_BEGIN, NUM_END
label_desc: Use image node_id 3 for calling the CnSwapNum obj's underlying member method code with example usage: obj._transform(sample, n) and returns: trans_sample, list