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: Digital conversion of start to end
  
  :param str sentence: the sentence to be changed
  :param list label: the tag of CWS
  :param int start: the start pos of the sentence
  :param int end: the end pos of the sentence
  :return str: the new number
  :return list: the label of new number
docstr_tok: ["Digital","conversion","of","start","to","end",":","param","str","sentence",":","the","sentence","to","be","changed",":","param","list","label",":","the","tag","of","CWS",":","param","int","start",":","the","start","pos","of","the","sentence",":","param","int","end",":","the","end","pos","of","the","sentence",":","return","str",":","the","new","number",":","return","list",":","the","label","of","new","number"]
code: def number_change(self, sentence, label, start, end):
      r"""
      Digital conversion of start to end
  
      :param str sentence: the sentence to be changed
      :param list label: the tag of CWS
      :param int start: the start pos of the sentence
      :param int end: the end pos of the sentence
      :return str: the new number
      :return list: the label of new number
  
      """
      assert len(label) == len(sentence)
      # Digital conversion of start to end
      max_num = 0
      change = ""
      change_label = []
  
      for i in range(start, end + 1):
          max_num = max(self.num_list.index(sentence[i]), max_num)
      if end - start > 1 and max_num < 10:
          # Special numbers are not deformed
          return change, change_label
      change = self.create_num(max_num)
      seed = random.randint(0, 2)
  
      if len(change) == 1:
          seed = 0
      if seed == 1:
          change = change[:-1] + random.choice(["来", "余"])
      elif seed == 0:
          ca = self.create_num(max_num)
          cb = self.create_num(max_num)
          while ca == cb:
              cb = self.create_num(max_num)
          if self.compare(ca, cb):
              tmp = ca
              ca = cb
              cb = tmp
          change = ca + random.choice(["至", "到"]) + cb
      if len(change) > 1:
          change_label = ["B"] + ["M"] * (len(change) - 2) + ["E"]
  
      return change, change_label
  
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 6 for calling the CnSwapNum obj's underlying member method code with example usage: obj.number_change(sentence, label, start, end) and returns: change,  change_label, change,  change_label